Skip to content

ToolCallContentChunk

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

A content item appended to a tool call's content.

Source code in src/aclientp/schema/v2/tool_calls.py
class ToolCallContentChunk(AnnotatedObject):
    """A content item appended to a tool call's content."""

    session_update: Literal["tool_call_content_chunk"] = Field(
        default="tool_call_content_chunk", init=False
    )

    tool_call_id: ToolCallId
    """The tool call the content belongs to."""

    content: ToolCallContent
    """The appended content item."""

content instance-attribute

content: ToolCallContent

The appended content item.

tool_call_id instance-attribute

tool_call_id: ToolCallId

The tool call the content belongs to.

:fa-brands-github: Show source on GitHub