ToolResultState
public enum ToolResultState
源码Source
io/agentscope/core/message/ToolResultState.java:20–41定义工具结果状态的枚举。位于 io.agentscope.core.message 包。核心成员包括 getValue、SUCCESS、ERROR、INTERRUPTED、DENIED、RUNNING。
A enum in io.agentscope.core.message that defines enum values used when components carries structured messages and events between agents, models and UIs. Declared in io.agentscope.core.message.
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
SUCCESS | 执行成功相关操作。 Performs the SUCCESS operation. |
ERROR | 执行错误相关操作。 Performs the ERROR operation. |
INTERRUPTED | 执行 `INTERRUPTED` 方法。 Performs the INTERRUPTED operation. |
DENIED | 执行已拒绝相关操作。 Performs the DENIED operation. |
RUNNING | 运行NING。 Runs the NING. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getValue() | 获取值。 Returns the value. |
枚举常量详情Enum Constant Detail
SUCCESS
SUCCESS("success")
staticfinal
执行成功相关操作。
Performs the SUCCESS operation.
源码Source
io/agentscope/core/message/ToolResultState.java:21ERROR
ERROR("error")
staticfinal
执行错误相关操作。
Performs the ERROR operation.
源码Source
io/agentscope/core/message/ToolResultState.java:23INTERRUPTED
INTERRUPTED("interrupted")
staticfinal
执行 INTERRUPTED 方法。
Performs the INTERRUPTED operation.
源码Source
io/agentscope/core/message/ToolResultState.java:25DENIED
DENIED("denied")
staticfinal
执行已拒绝相关操作。
Performs the DENIED operation.
源码Source
io/agentscope/core/message/ToolResultState.java:27RUNNING
RUNNING("running")
staticfinal
运行NING。
Runs the NING.
源码Source
io/agentscope/core/message/ToolResultState.java:29方法详情Method Detail
getValue
public String getValue()
获取值。
Returns the value.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/message/ToolResultState.java:37–40