Skip to content

Tools

AITool

Bases: BaseModel

A tool that can be used by the LLM.

Attributes:

Name Type Description
name str

The name of the tool.

description str

The description of the tool.

input_schema Mapping[str, Any]

The schema of the input of the tool. A possible schema specification can be found at the Model Context Protocol Projekt: https://github.com/modelcontextprotocol

Source code in src/llmir/tools.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
class AITool(BaseModel):
    """
    A tool that can be used by the LLM.

    Attributes:
        name: The name of the tool.
        description: The description of the tool.
        input_schema: The schema of the input of the tool. A possible schema specification can be found at the Model Context Protocol Projekt: https://github.com/modelcontextprotocol
    """

    name: str
    description: str
    input_schema: Mapping[str, Any]