AssistantEvent

An assistant turn.

Usage

Source

AssistantEvent(
    meta,
    model,
    text,
    blocks,
    stop_reason,
)

Parameter Attributes

meta: EntryMeta
model: str
text: str
blocks: tuple[ContentBlock, …]
stop_reason: str | None

Attributes

meta: EntryMeta

The entry envelope metadata.

model: str

The model that produced the turn, e.g. <synthetic>.

text: str

The joined text of the turn.

blocks: tuple[ContentBlock, …]

The parsed content blocks, including thinking and tool uses.

stop_reason: str | None
The model’s stop reason, when present.