Skip to content

ToolConfig

Base classes

Name Children Inherits
ConfigModel
llmling.config.base
Base class for all LLMling configuration models.

⋔ Inheritance diagram

graph TD
  3370870121["models.ToolConfig"]
  2455074328["base.ConfigModel"]
  330168112["schema.Schema"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2455074328 --> 3370870121
  330168112 --> 2455074328
  3879467795 --> 330168112
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ConfigModel

Configuration for a tool.

Source code in src/llmling/config/models.py
class ToolConfig(ConfigModel):
    """Configuration for a tool."""

    import_path: str
    """Import path to the tool implementation (e.g. 'mymodule.tools.MyTool')"""

    name: str | None = None
    """Optional override for the tool's display name"""

    description: str | None = None
    """Optional override for the tool's description"""

    hints: ToolHints = ToolHints()
    """Hints about the tool's behavior and execution characteristics"""

description class-attribute instance-attribute

description: str | None = None

Optional override for the tool's description

hints class-attribute instance-attribute

hints: ToolHints = ToolHints()

Hints about the tool's behavior and execution characteristics

import_path instance-attribute

import_path: str

Import path to the tool implementation (e.g. 'mymodule.tools.MyTool')

name class-attribute instance-attribute

name: str | None = None

Optional override for the tool's display name

:fa-brands-github: Show source on GitHub