包package
io.agentscope.core.messageio.agentscope.core.message
package io.agentscope.core.message
io.agentscope.core.message 属于消息·事件·格式化,统一消息模型与协议转换。 该包共收录 38 个公开类型。
io.agentscope.core.message belongs to the Messages, events & formatting layer and contains 38 public types.
类Classes
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
AssistantMessage | 类class | Assistant 消息,在智能体、模型与前端之间传递结构化消息和事件。 A `Msg` with `MsgRole#ASSISTANT` pinned at construction time. |
AudioBlock | 类class | 表示音频内容 in 消息。 Represents audio content in a message. |
Base64Source | 类class | 基类 64 来源,在智能体、模型与前端之间传递结构化消息和事件。 Represents Base64-encoded media content with media type and data. |
ContentBlock | 类class | 内容块,在智能体、模型与前端之间传递结构化消息和事件。 Base sealed class for all content blocks in messages. |
DataBlock | 类class | 数据块,在智能体、模型与前端之间传递结构化消息和事件。 Unified data block for arbitrary binary media (image / audio / video / file). |
HintBlock | 类class | Hint 块,在智能体、模型与前端之间传递结构化消息和事件。 A content block that provides hints to the LLM during reasoning. |
ImageBlock | 类class | 表示图像内容 in 消息使用 URL 或 Base64 来源。 Represents image content in a message with URL or Base64 source. |
MessageMetadataKeys | 类class | 消息元数据密钥,在智能体、模型与前端之间传递结构化消息和事件。 Constants for well-known message metadata keys. |
Msg | 类class | Java 消息模型 Represents a message in the AgentScope framework. |
Source | 类class | 来源,在智能体、模型与前端之间传递结构化消息和事件。 Base class for media sources (URL or Base64). |
SystemMessage | 类class | 系统消息,在智能体、模型与前端之间传递结构化消息和事件。 A `Msg` with `MsgRole#SYSTEM` pinned at construction time. |
TextBlock | 类class | 文本块,在智能体、模型与前端之间传递结构化消息和事件。 Represents plain text content in a message. |
ThinkingBlock | 类class | Thinking 块,在智能体、模型与前端之间传递结构化消息和事件。 Represents reasoning or thinking content in a message. |
ToolResultBlock | 类class | 表示结果的工具执行。 Represents the result of a tool execution. |
ToolResultMessage | 类class | 工具结果消息,在智能体、模型与前端之间传递结构化消息和事件。 A `Msg` with `MsgRole#TOOL` pinned at construction time. |
ToolUseBlock | 类class | 工具使用块,在智能体、模型与前端之间传递结构化消息和事件。 Represents a tool use request within a message. |
URLSource | 类class | URL 来源,在智能体、模型与前端之间传递结构化消息和事件。 Represents URL-based media content. |
UserMessage | 类class | 用户消息,在智能体、模型与前端之间传递结构化消息和事件。 A `Msg` with `MsgRole#USER` pinned at construction time. |
VideoBlock | 类class | 表示视频内容 in 消息。 Represents video content in a message. |
枚举Enums
| 类型Type | 种类Kind | 说明Description |
|---|---|---|
GenerateReason | 枚举enum | 定义Generate 推理相关取值的枚举。 Represents the reason why a message was generated by an agent. |
MsgRole | 枚举enum | 定义消息角色相关取值的枚举。 Defines the role of a message participant in agent conversations. |
ToolCallState | 枚举enum | 定义工具调用状态的枚举。 A enum in io.agentscope.core.message that defines enum values used when components carries structured messages and events between agents, models and UIs. |
ToolResultState | 枚举enum | 定义工具结果状态的枚举。 A enum in io.agentscope.core.message that defines enum values used when components carries structured messages and events between agents, models and UIs. |