Skip to content

HarnessContentBlockDict

Union Type

HarnessContentBlockDict module-attribute

Dictionary form of HarnessContentBlock, setting exactly one variant.

Union Member Types

HarnessContentBlockTextDict

Bases: TypedDict

Attributes

text instance-attribute
text: str

Text content.

HarnessContentBlockToolUseDict

Bases: TypedDict

Attributes

tool_use instance-attribute

A tool use request from the model.

HarnessContentBlockToolResultDict

Bases: TypedDict

Attributes

tool_result instance-attribute

A tool execution result.

HarnessContentBlockReasoningContentDict

Bases: TypedDict

Attributes

reasoning_content instance-attribute

Model reasoning content.