agentscope.message.block¶
The content blocks of messages
- class AudioBlock[source]¶
Bases:
TypedDict
The audio block
- type: Required[Literal['audio']]¶
The type of the block
- url: str¶
The url of the audio
- class FileBlock[source]¶
Bases:
TypedDict
The file block
- type: Required[Literal['file']]¶
The type of the block
- url: str¶
The url of the file
- class ImageBlock[source]¶
Bases:
TypedDict
The image block
- type: Required[Literal['image']]¶
The type of the block
- url: str¶
The url of the image
- class TextBlock[source]¶
Bases:
TypedDict
The text block.
- text: str¶
The text content
- type: Required[Literal['text']]¶
The type of the block
- class ToolResultBlock[source]¶
Bases:
TypedDict
The 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