AS AgentScopeAPI 手册 / API Reference

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:21

ERROR

ERROR("error")
staticfinal

执行错误相关操作。

Performs the ERROR operation.

源码Source io/agentscope/core/message/ToolResultState.java:23

INTERRUPTED

INTERRUPTED("interrupted")
staticfinal

执行 INTERRUPTED 方法。

Performs the INTERRUPTED operation.

源码Source io/agentscope/core/message/ToolResultState.java:25

DENIED

DENIED("denied")
staticfinal

执行已拒绝相关操作。

Performs the DENIED operation.

源码Source io/agentscope/core/message/ToolResultState.java:27

RUNNING

RUNNING("running")
staticfinal

运行NING。

Runs the NING.

源码Source io/agentscope/core/message/ToolResultState.java:29

方法详情Method Detail

getValue

public String getValue()

获取值。

Returns the value.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/message/ToolResultState.java:37–40
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.