AS AgentScopeAPI 手册 / API Reference

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_KEY
staticfinal
String
请求头键字段。
Context key for storing the headers.
METHOD_NAME_KEY
staticfinal
String
方法名称键字段。
Context key for storing the method name being called.
IS_STREAM_KEY
staticfinal
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:29

METHOD_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:34

IS_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
基于官方固定版本源码静态生成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.