ContextKeys
public class ContextKeys
源码Source
io/agentscope/runtime/protocol/a2a/controller/ContextKeys.java:24–40上下文密钥,支持智能体之间的发现、委派与协作。位于 io.agentscope.runtime.protocol.a2a.controller 包。核心成员包括 HEADERS_KEY、METHOD_NAME_KEY、IS_STREAM_KEY。
Context key constants for A2A protocol.
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
HEADERS_KEYstaticfinal | String | 请求头键字段。 Context key for storing the headers. |
METHOD_NAME_KEYstaticfinal | String | 方法名称键字段。 Context key for storing the method name being called. |
IS_STREAM_KEYstaticfinal | String | 是流键字段。 Context key for storing whether the request is streaming. |
字段详情Field Detail
HEADERS_KEY
public static final String HEADERS_KEY
staticfinal
请求头键字段。声明为 public static final String HEADERS_KEY。
Context key for storing the headers.
源码Source
io/agentscope/runtime/protocol/a2a/controller/ContextKeys.java:29METHOD_NAME_KEY
public static final String METHOD_NAME_KEY
staticfinal
方法名称键字段。声明为 public static final String METHOD_NAME_KEY。
Context key for storing the method name being called.
源码Source
io/agentscope/runtime/protocol/a2a/controller/ContextKeys.java:34IS_STREAM_KEY
public static final String IS_STREAM_KEY
staticfinal
是流键字段。声明为 public static final String IS_STREAM_KEY。
Context key for storing whether the request is streaming.
源码Source
io/agentscope/runtime/protocol/a2a/controller/ContextKeys.java:39