Skip to content

ToolCallProgress

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

Update on the status or results of a tool call.

Source code in src/aclientp/schema/session_updates.py
class ToolCallProgress(AnnotatedObject):
    """Update on the status or results of a tool call."""

    session_update: Literal["tool_call_update"] = Field(default="tool_call_update", init=False)
    """Tool call update."""

    content: Sequence[ToolCallContent] | None = None
    """Replace the content collection."""

    kind: ToolCallKind | None = None
    """Update the tool kind."""

    locations: Sequence[ToolCallLocation] | None = None
    """Replace the locations collection."""

    raw_input: Any | None = None
    """Update the raw input."""

    raw_output: Any | None = None
    """Update the raw output."""

    status: ToolCallStatus | None = None
    """Update the execution status."""

    title: str | None = None
    """Update the human-readable title."""

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

    tool_call_id: str
    """The ID of the tool call being updated."""

content class-attribute instance-attribute

content: Sequence[ToolCallContent] | None = None

Replace the content collection.

kind class-attribute instance-attribute

kind: ToolCallKind | None = None

Update the tool kind.

locations class-attribute instance-attribute

locations: Sequence[ToolCallLocation] | None = None

Replace the locations collection.

name class-attribute instance-attribute

name: str | None = None

Update the programmatic name of the tool being invoked.

raw_input class-attribute instance-attribute

raw_input: Any | None = None

Update the raw input.

raw_output class-attribute instance-attribute

raw_output: Any | None = None

Update the raw output.

session_update class-attribute instance-attribute

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

Tool call update.

status class-attribute instance-attribute

status: ToolCallStatus | None = None

Update the execution status.

title class-attribute instance-attribute

title: str | None = None

Update the human-readable title.

tool_call_id instance-attribute

tool_call_id: str

The ID of the tool call being updated.

:fa-brands-github: Show source on GitHub