MCPToolResponse
public record MCPToolResponse(String result, String message)
源码Source
io/agentscope/runtime/engine/agents/saa/tools/mcp/MCPToolExecutor.java:84–89承载 MCP 工具响应数据的记录类型。位于 io.agentscope.runtime.engine.agents.saa.tools.mcp 包。核心成员包括 result、message、MCPToolResponse。
A record in io.agentscope.runtime.engine.agents.saa.tools.mcp that carries data used when components lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.saa.tools.mcp.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
result | String | 执行结果相关操作。 Performs the result operation. |
message | String | 执行消息相关操作。 Performs the message operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public MCPToolResponse(String result, String message) | 初始化 `MCPToolResponse` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
result
String result执行结果相关操作。
Performs the result operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/mcp/MCPToolExecutor.java:84–89message
String message执行消息相关操作。
Performs the message operation.
源码Source
io/agentscope/runtime/engine/agents/saa/tools/mcp/MCPToolExecutor.java:84–89构造器详情Constructor Detail
MCPToolResponse
public MCPToolResponse(String result, String message)
初始化 MCPToolResponse 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
result | String | 结果(类型 `String`)。The result. |
message | String | 消息(类型 `String`)。The message. |
源码Source
io/agentscope/runtime/engine/agents/saa/tools/mcp/MCPToolExecutor.java:85–88