Skip to content

ToolCallUpdate

Sub classes

Name Children Inherits
ToolCallSessionUpdate
aclientp.schema.v2.session_updates
``tool_call_update``: a tool call was created or updated.

    Base classes

    Name Children Inherits
    AnnotatedObject
    aclientp.schema.v2.base
    A v2 object with the ``_meta`` extension point.

    ⋔ Inheritance diagram

    graph TD
      95970870843536["tool_calls.ToolCallUpdate"]
      95970868359040["base.AnnotatedObject"]
      95970855946400["base.Schema"]
      95970851503232["main.BaseModel"]
      125067848591872["builtins.object"]
      95970868359040 --> 95970870843536
      95970855946400 --> 95970868359040
      95970851503232 --> 95970855946400
      125067848591872 --> 95970851503232

    🛈 DocStrings

    Bases: AnnotatedObject

    A tool call upsert, keyed by tool_call_id.

    Sent as the tool_call_update session update (:class:ToolCallSessionUpdate in :mod:aclientp.schema.v2.session_updates), and embedded in tool call permission requests.

    Source code in src/aclientp/schema/v2/tool_calls.py
    class ToolCallUpdate(AnnotatedObject):
        """A tool call upsert, keyed by ``tool_call_id``.
    
        Sent as the ``tool_call_update`` session update (:class:`ToolCallSessionUpdate` in
        :mod:`aclientp.schema.v2.session_updates`), and embedded in tool call permission requests.
        """
    
        tool_call_id: ToolCallId
        """Unique identifier of the tool call in the session."""
    
        name: str | MISSING | None = MISSING
        """Programmatic name of the tool."""
    
        title: str | MISSING | None = MISSING
        """Human-readable title of what the tool is doing."""
    
        kind: ToolKind | MISSING | None = MISSING
        """Category of the tool."""
    
        status: ToolCallStatus | MISSING | None = MISSING
        """Execution status; ``None`` resets it to ``pending``."""
    
        content: Sequence[ToolCallContent] | MISSING | None = MISSING
        """Content produced by the tool call; replaces earlier content."""
    
        locations: Sequence[ToolCallLocation] | MISSING | None = MISSING
        """File locations affected by the tool call."""
    
        raw_input: Any | MISSING = MISSING
        """Raw input parameters of the tool."""
    
        raw_output: Any | MISSING = MISSING
        """Raw output of the tool."""
    
        capabilities: ToolCallCapabilities | MISSING | None = MISSING
        """Controls the tool call currently supports, such as cancellation."""
    

    capabilities class-attribute instance-attribute

    capabilities: ToolCallCapabilities | MISSING | None = MISSING
    

    Controls the tool call currently supports, such as cancellation.

    content class-attribute instance-attribute

    content: Sequence[ToolCallContent] | MISSING | None = MISSING
    

    Content produced by the tool call; replaces earlier content.

    kind class-attribute instance-attribute

    kind: ToolKind | MISSING | None = MISSING
    

    Category of the tool.

    locations class-attribute instance-attribute

    locations: Sequence[ToolCallLocation] | MISSING | None = MISSING
    

    File locations affected by the tool call.

    name class-attribute instance-attribute

    name: str | MISSING | None = MISSING
    

    Programmatic name of the tool.

    raw_input class-attribute instance-attribute

    raw_input: Any | MISSING = MISSING
    

    Raw input parameters of the tool.

    raw_output class-attribute instance-attribute

    raw_output: Any | MISSING = MISSING
    

    Raw output of the tool.

    status class-attribute instance-attribute

    status: ToolCallStatus | MISSING | None = MISSING
    

    Execution status; None resets it to pending.

    title class-attribute instance-attribute

    title: str | MISSING | None = MISSING
    

    Human-readable title of what the tool is doing.

    tool_call_id instance-attribute

    tool_call_id: ToolCallId
    

    Unique identifier of the tool call in the session.

    :fa-brands-github: Show source on GitHub