MessageType
public class MessageType
io/agentscope/runtime/engine/schemas/MessageType.java:25–66消息类型,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.engine.schemas 包。核心成员包括 allValues、MESSAGE、FUNCTION_CALL、FUNCTION_CALL_OUTPUT、PLUGIN_CALL、PLUGIN_CALL_OUTPUT。
Message type constants.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
MESSAGEstaticfinal | String | 消息字段。 The MESSAGE field. |
FUNCTION_CALLstaticfinal | String | 函数调用字段。 The FUNCTION CALL field. |
FUNCTION_CALL_OUTPUTstaticfinal | String | 函数调用输出字段。 The FUNCTION CALL OUTPUT field. |
PLUGIN_CALLstaticfinal | String | PLUGIN 调用字段。 The PLUGIN CALL field. |
PLUGIN_CALL_OUTPUTstaticfinal | String | PLUGIN 调用输出字段。 The PLUGIN CALL OUTPUT field. |
COMPONENT_CALLstaticfinal | String | COMPONENT 调用字段。 The COMPONENT CALL field. |
COMPONENT_CALL_OUTPUTstaticfinal | String | COMPONENT 调用输出字段。 The COMPONENT CALL OUTPUT field. |
MCP_LIST_TOOLSstaticfinal | String | MCP 列表工具字段。 The MCP LIST TOOLS field. |
MCP_APPROVAL_REQUESTstaticfinal | String | MCP APPROVAL 请求字段。 The MCP APPROVAL REQUEST field. |
MCP_TOOL_CALLstaticfinal | String | MCP 工具调用字段。 The MCP TOOL CALL field. |
MCP_APPROVAL_RESPONSEstaticfinal | String | MCP APPROVAL 响应字段。 The MCP APPROVAL RESPONSE field. |
REASONINGstaticfinal | String | 推理字段。 The REASONING field. |
HEARTBEATstaticfinal | String | 心跳字段。 The HEARTBEAT field. |
ERRORstaticfinal | String | 错误字段。 The ERROR field. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static List<String> allValues()static | 返回所有消息类型值。 Returns all message type values. |
字段详情Field Detail
MESSAGE
public static final String MESSAGE
消息字段。声明为 public static final String MESSAGE。
The MESSAGE field.
io/agentscope/runtime/engine/schemas/MessageType.java:26FUNCTION_CALL
public static final String FUNCTION_CALL
函数调用字段。声明为 public static final String FUNCTION_CALL。
The FUNCTION CALL field.
io/agentscope/runtime/engine/schemas/MessageType.java:27FUNCTION_CALL_OUTPUT
public static final String FUNCTION_CALL_OUTPUT
函数调用输出字段。声明为 public static final String FUNCTION_CALL_OUTPUT。
The FUNCTION CALL OUTPUT field.
io/agentscope/runtime/engine/schemas/MessageType.java:28PLUGIN_CALL
public static final String PLUGIN_CALL
PLUGIN 调用字段。声明为 public static final String PLUGIN_CALL。
The PLUGIN CALL field.
io/agentscope/runtime/engine/schemas/MessageType.java:29PLUGIN_CALL_OUTPUT
public static final String PLUGIN_CALL_OUTPUT
PLUGIN 调用输出字段。声明为 public static final String PLUGIN_CALL_OUTPUT。
The PLUGIN CALL OUTPUT field.
io/agentscope/runtime/engine/schemas/MessageType.java:30COMPONENT_CALL
public static final String COMPONENT_CALL
COMPONENT 调用字段。声明为 public static final String COMPONENT_CALL。
The COMPONENT CALL field.
io/agentscope/runtime/engine/schemas/MessageType.java:31COMPONENT_CALL_OUTPUT
public static final String COMPONENT_CALL_OUTPUT
COMPONENT 调用输出字段。声明为 public static final String COMPONENT_CALL_OUTPUT。
The COMPONENT CALL OUTPUT field.
io/agentscope/runtime/engine/schemas/MessageType.java:32MCP_LIST_TOOLS
public static final String MCP_LIST_TOOLS
MCP 列表工具字段。声明为 public static final String MCP_LIST_TOOLS。
The MCP LIST TOOLS field.
io/agentscope/runtime/engine/schemas/MessageType.java:33MCP_APPROVAL_REQUEST
public static final String MCP_APPROVAL_REQUEST
MCP APPROVAL 请求字段。声明为 public static final String MCP_APPROVAL_REQUEST。
The MCP APPROVAL REQUEST field.
io/agentscope/runtime/engine/schemas/MessageType.java:34MCP_TOOL_CALL
public static final String MCP_TOOL_CALL
MCP 工具调用字段。声明为 public static final String MCP_TOOL_CALL。
The MCP TOOL CALL field.
io/agentscope/runtime/engine/schemas/MessageType.java:35MCP_APPROVAL_RESPONSE
public static final String MCP_APPROVAL_RESPONSE
MCP APPROVAL 响应字段。声明为 public static final String MCP_APPROVAL_RESPONSE。
The MCP APPROVAL RESPONSE field.
io/agentscope/runtime/engine/schemas/MessageType.java:36REASONING
public static final String REASONING
推理字段。声明为 public static final String REASONING。
The REASONING field.
io/agentscope/runtime/engine/schemas/MessageType.java:37HEARTBEAT
public static final String HEARTBEAT
心跳字段。声明为 public static final String HEARTBEAT。
The HEARTBEAT field.
io/agentscope/runtime/engine/schemas/MessageType.java:38ERROR
public static final String ERROR
错误字段。声明为 public static final String ERROR。
The ERROR field.
io/agentscope/runtime/engine/schemas/MessageType.java:39方法详情Method Detail
allValues
public static List<String> allValues()
返回所有消息类型值。
Returns all message type values.
List<String>io/agentscope/runtime/engine/schemas/MessageType.java:44–61