Skip to content

Content

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: AnnotatedObject

A standard content block (text, image, resource) produced by a tool call.

Source code in src/aclientp/schema/v2/tool_calls.py
class Content(AnnotatedObject):
    """A standard content block (text, image, resource) produced by a tool call."""

    type: Literal["content"] = Field(default="content", init=False)

    content: ContentBlock
    """The content block."""

content instance-attribute

content: ContentBlock

The content block.

:fa-brands-github: Show source on GitHub