ToolExecResult
public record ToolExecResult(String content, boolean error)
源码Source
io/agentscope/builder/web/managed/selfhosted/LocalHandsToolExecutor.java:388–392承载工具 Exec 结果数据的记录类型。位于 io.agentscope.builder.web.managed.selfhosted 包。核心成员包括 content、error。
Result of a local hands tool execution.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
content | String | 执行内容相关操作。 Performs the content operation. |
error | boolean | 执行错误相关操作。 Performs the error operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static ToolExecResult error(String message)static | 设置错误。 Performs the error operation. |
记录组件详情Record Component Detail
content
String content执行内容相关操作。
Performs the content operation.
源码Source
io/agentscope/builder/web/managed/selfhosted/LocalHandsToolExecutor.java:388–392error
boolean error执行错误相关操作。
Performs the error operation.
源码Source
io/agentscope/builder/web/managed/selfhosted/LocalHandsToolExecutor.java:388–392方法详情Method Detail
error
public static ToolExecResult error(String message)
static
设置错误。
Performs the error operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
ToolExecResult返回ToolExecResult。Returns tool exec result.
源码Source
io/agentscope/builder/web/managed/selfhosted/LocalHandsToolExecutor.java:389–391