Skip to content

ToolHints

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: ConfigModel

Configuration for tool execution hints.

Source code in src/llmling/config/models.py
class ToolHints(ConfigModel):
    """Configuration for tool execution hints."""

    read_only: bool | None = None
    """Hints that this tool only reads data without modifying anything"""

    destructive: bool | None = None
    """Hints that this tool performs destructive operations that cannot be undone"""

    idempotent: bool | None = None
    """Hints that this tool has idempotent behaviour"""

    open_world: bool | None = None
    """Hints that this tool can access / interact with external resources beyond the
    current system"""

destructive class-attribute instance-attribute

destructive: bool | None = None

Hints that this tool performs destructive operations that cannot be undone

idempotent class-attribute instance-attribute

idempotent: bool | None = None

Hints that this tool has idempotent behaviour

open_world class-attribute instance-attribute

open_world: bool | None = None

Hints that this tool can access / interact with external resources beyond the current system

read_only class-attribute instance-attribute

read_only: bool | None = None

Hints that this tool only reads data without modifying anything

:fa-brands-github: Show source on GitHub