models
models ¶
ToolUseBlock
dataclass
¶
A tool-use content block from a transcript message, containing the tool name and raw input.
ToolResult
dataclass
¶
ToolResult(
*,
tool_use_id: str,
content: list[Any] | str = (lambda: [])(),
is_error: bool = False,
is_async: bool = False,
)
A tool-result content block linking back to its tool use via tool_use_id.
TaskNotification
dataclass
¶
A parsed <task-notification> payload from a queue-operation message.
ToolUse
dataclass
¶
ToolUse(
*,
name: str,
raw_input: RawDict = (lambda: {})(),
id: str,
result: ToolResult | None = None,
message_index: int = -1,
)
A tool invocation extracted from the transcript, with typed input parsing, file/command access, and result linkage.
TranscriptMessage
dataclass
¶
A single message in a transcript with parsed content blocks, tool-use extraction, and text access.