Skip to content

AgentOutputTextContent

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  1665269957["output_types.AgentOutputTextContent"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1665269957
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

A text content block in agent output.

Source code in src/clawd_code_sdk/models/output_types.py
class AgentOutputTextContent(TypedDict):
    """A text content block in agent output."""

    type: Literal["text"]
    """Content type, always 'text'."""
    text: str
    """The text content."""
    citations: NotRequired[list[Any] | None]
    """Citations attached to the text block."""

citations instance-attribute

citations: NotRequired[list[Any] | None]

Citations attached to the text block.

text instance-attribute

text: str

The text content.

type instance-attribute

type: Literal['text']

Content type, always 'text'.

:fa-brands-github: Show source on GitHub