AgentProtocolConstants
public final class AgentProtocolConstants
io/agentscope/extensions/agentprotocol/AgentProtocolConstants.java:25–79智能体协议 Constants,为框架提供通用类型与基础能力。位于 io.agentscope.extensions.agentprotocol 包。核心成员包括 isReservedRuntimeContextKey、PROTOCOL_AGENT_ID、PROTOCOL_SESSION_ID、CONTEXT_ATTRIBUTES_FIELD、RUNTIME_CONTEXT_ATTRIBUTES_KEY。
Workspace partitioning for persisted task records served by the protocol endpoints, plus the contract for caller-supplied context attributes.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
PROTOCOL_AGENT_IDstaticfinal | String | 协议智能体标识字段。 Synthetic parent agent id for `agents/<id>/tasks/` paths. |
PROTOCOL_SESSION_IDstaticfinal | String | 协议会话标识字段。 Single session bucket file holding all protocol tasks as a task-id map. |
CONTEXT_ATTRIBUTES_FIELDstaticfinal | String | 上下文属性 FIELD字段。 Field inside the submission `context` that carries caller-defined attributes. |
RUNTIME_CONTEXT_ATTRIBUTES_KEYstaticfinal | String | 运行时上下文属性键字段。 `io.agentscope.core.agent.RuntimeContext` key holding the whole `
context.attributes` map as an unmodifiable `Map<String, Object>`. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static boolean isReservedRuntimeContextKey(String key)static | 判断是否 `isReservedRuntimeContextKey`。 Whether `key` is read by the framework itself and therefore unsafe to overwrite with a
caller-supplied value. |
字段详情Field Detail
PROTOCOL_AGENT_ID
public static final String PROTOCOL_AGENT_ID
协议智能体标识字段。声明为 public static final String PROTOCOL_AGENT_ID。
Synthetic parent agent id for agents/ /tasks/ paths.
io/agentscope/extensions/agentprotocol/AgentProtocolConstants.java:30PROTOCOL_SESSION_ID
public static final String PROTOCOL_SESSION_ID
协议会话标识字段。声明为 public static final String PROTOCOL_SESSION_ID。
Single session bucket file holding all protocol tasks as a task-id map.
io/agentscope/extensions/agentprotocol/AgentProtocolConstants.java:33CONTEXT_ATTRIBUTES_FIELD
public static final String CONTEXT_ATTRIBUTES_FIELD
上下文属性 FIELD字段。声明为 public static final String CONTEXT_ATTRIBUTES_FIELD。
Field inside the submission context that carries caller-defined attributes.
io/agentscope/extensions/agentprotocol/AgentProtocolConstants.java:40RUNTIME_CONTEXT_ATTRIBUTES_KEY
public static final String RUNTIME_CONTEXT_ATTRIBUTES_KEY
运行时上下文属性键字段。声明为 public static final String RUNTIME_CONTEXT_ATTRIBUTES_KEY。
io.agentscope.core.agent.RuntimeContext key holding the whole context.attributes map as an unmodifiable Map.
io/agentscope/extensions/agentprotocol/AgentProtocolConstants.java:51方法详情Method Detail
isReservedRuntimeContextKey
public static boolean isReservedRuntimeContextKey(String key)
判断是否 isReservedRuntimeContextKey。
Whether key is read by the framework itself and therefore unsafe to overwrite with a caller-supplied value.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
key | String | 键(类型 `String`)。The key. |
booleanio/agentscope/extensions/agentprotocol/AgentProtocolConstants.java:65–78