Role
public enum Role
源码Source
io/agentscope/core/tracing/telemetry/model/Role.java:24–40定义角色相关取值的枚举。位于 io.agentscope.core.tracing.telemetry.model 包。核心成员包括 getValue、SYSTEM、USER、ASSISTANT、TOOL、DEVELOPER。
A enum in io.agentscope.core.tracing.telemetry.model that defines enum values used when components talks to model services and returns generated or embedded output. Declared in io.agentscope.core.tracing.telemetry.model.
枚举常量摘要Enum Constant Summary
| 常量Constant | 说明Description |
|---|---|
SYSTEM | 执行系统相关操作。 Performs the SYSTEM operation. |
USER | 执行用户相关操作。 Performs the USER operation. |
ASSISTANT | 执行 `ASSISTANT` 方法。 Performs the ASSISTANT operation. |
TOOL | 执行工具相关操作。 Performs the TOOL operation. |
DEVELOPER | 执行 `DEVELOPER` 方法。 Performs the DEVELOPER operation. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getValue() | 获取值。 Returns the value. |
枚举常量详情Enum Constant Detail
SYSTEM
SYSTEM("system")
staticfinal
执行系统相关操作。
Performs the SYSTEM operation.
源码Source
io/agentscope/core/tracing/telemetry/model/Role.java:25USER
USER("user")
staticfinal
执行用户相关操作。
Performs the USER operation.
源码Source
io/agentscope/core/tracing/telemetry/model/Role.java:26ASSISTANT
ASSISTANT("assistant")
staticfinal
执行 ASSISTANT 方法。
Performs the ASSISTANT operation.
源码Source
io/agentscope/core/tracing/telemetry/model/Role.java:27TOOL
TOOL("tool")
staticfinal
执行工具相关操作。
Performs the TOOL operation.
源码Source
io/agentscope/core/tracing/telemetry/model/Role.java:28DEVELOPER
DEVELOPER("developer")
staticfinal
执行 DEVELOPER 方法。
Performs the DEVELOPER operation.
源码Source
io/agentscope/core/tracing/telemetry/model/Role.java:29方法详情Method Detail
getValue
public String getValue()
获取值。
Returns the value.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/tracing/telemetry/model/Role.java:33–35