agentscope.message.block¶
The content blocks of messages
- class AudioBlock[source]¶
Bases:
TypedDictThe audio block
- type: Required[Literal['audio']]¶
The type of the block
- url: str¶
The url of the audio
- class FileBlock[source]¶
Bases:
TypedDictThe file block
- type: Required[Literal['file']]¶
The type of the block
- url: str¶
The url of the file
- class ImageBlock[source]¶
Bases:
TypedDictThe image block
- type: Required[Literal['image']]¶
The type of the block
- url: str¶
The url of the image
- class TextBlock[source]¶
Bases:
TypedDictThe text block.
- text: str¶
The text content
- type: Required[Literal['text']]¶
The type of the block
- class ToolResultBlock[source]¶
Bases:
TypedDictThe tool result block.
- id: Required[str]¶
The identity of the tool call result
- name: str | None¶
The name of the tool function
- output: Required[object]¶
The output of the tool function
- type: Required[Literal['tool_result']]¶
The type of the block