AS AgentScopeAPI 手册 / API Reference

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

USER

USER("user")
staticfinal

执行用户相关操作。

Performs the USER operation.

源码Source io/agentscope/core/tracing/telemetry/model/Role.java:26

ASSISTANT

ASSISTANT("assistant")
staticfinal

执行 ASSISTANT 方法。

Performs the ASSISTANT operation.

源码Source io/agentscope/core/tracing/telemetry/model/Role.java:27

TOOL

TOOL("tool")
staticfinal

执行工具相关操作。

Performs the TOOL operation.

源码Source io/agentscope/core/tracing/telemetry/model/Role.java:28

DEVELOPER

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.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/tracing/telemetry/model/Role.java:33–35
基于官方固定版本源码静态生成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.