Skip to content

HarnessContentBlock

Union Type

HarnessContentBlock module-attribute

A content block within a message.

Union Member Types

HarnessContentBlockText dataclass

Bases: _SerdeShape

Text content.

Attributes

value instance-attribute
value: str

HarnessContentBlockToolUse dataclass

Bases: _SerdeShape

A tool use request from the model.

Attributes

value instance-attribute

HarnessContentBlockToolResult dataclass

Bases: _SerdeShape

A tool execution result.

Attributes

value instance-attribute

HarnessContentBlockReasoningContent dataclass

Bases: _SerdeShape

Model reasoning content.

Attributes

value instance-attribute

HarnessContentBlockUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str