Skip to content

ToolCallStart

Base classes

Name Children Inherits
AnnotatedObject
aclientp.schema.base
Base class for generated models.

⋔ Inheritance diagram

graph TD
  95970848357488["session_updates.ToolCallStart"]
  95970862258240["base.AnnotatedObject"]
  95970862254416["base.Schema"]
  95970851503232["main.BaseModel"]
  125067848591872["builtins.object"]
  95970862258240 --> 95970848357488
  95970862254416 --> 95970862258240
  95970851503232 --> 95970862254416
  125067848591872 --> 95970851503232

🛈 DocStrings

Bases: AnnotatedObject

Notification that a new tool call has been initiated.

Source code in src/aclientp/schema/session_updates.py
class ToolCallStart(AnnotatedObject):
    """Notification that a new tool call has been initiated."""

    session_update: Literal["tool_call"] = Field(default="tool_call", init=False)
    """Notification that a new tool call has been initiated."""

    content: Sequence[ToolCallContent] | None = None
    """Content produced by the tool call."""

    kind: ToolCallKind | None = None
    """The category of tool being invoked.

    Helps clients choose appropriate icons and UI treatment.
    """

    locations: Sequence[ToolCallLocation] | None = None
    """File locations affected by this tool call.

    Enables "follow-along" features in clients.
    """

    raw_input: Any | None = None
    """Raw input parameters sent to the tool."""

    raw_output: Any | None = None
    """Raw output returned by the tool."""

    status: ToolCallStatus | None = None
    """Current execution status of the tool call."""

    title: str
    """Human-readable title describing what the tool is doing."""

    name: str | None = None
    """Programmatic name of the tool being invoked."""

    tool_call_id: str
    """Unique identifier for this tool call within the session."""

content class-attribute instance-attribute

content: Sequence[ToolCallContent] | None = None

Content produced by the tool call.

kind class-attribute instance-attribute

kind: ToolCallKind | None = None

The category of tool being invoked.

Helps clients choose appropriate icons and UI treatment.

locations class-attribute instance-attribute

locations: Sequence[ToolCallLocation] | None = None

File locations affected by this tool call.

Enables "follow-along" features in clients.

name class-attribute instance-attribute

name: str | None = None

Programmatic name of the tool being invoked.

raw_input class-attribute instance-attribute

raw_input: Any | None = None

Raw input parameters sent to the tool.

raw_output class-attribute instance-attribute

raw_output: Any | None = None

Raw output returned by the tool.

session_update class-attribute instance-attribute

session_update: Literal['tool_call'] = Field(default='tool_call', init=False)

Notification that a new tool call has been initiated.

status class-attribute instance-attribute

status: ToolCallStatus | None = None

Current execution status of the tool call.

title instance-attribute

title: str

Human-readable title describing what the tool is doing.

tool_call_id instance-attribute

tool_call_id: str

Unique identifier for this tool call within the session.

:fa-brands-github: Show source on GitHub