AS AgentScopeAPI 手册 / API Reference
类class agentscope.state

A2AAgentState

class A2AAgentState(BaseModel)
源码Source agentscope/state/_a2a_state.py:10–23

A2A 智能体状态。位于 agentscope.state 包。

The A2A agent state. Declared in agentscope.state.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
session_idstr
会话标识字段。
Field(default_factory=_generate_id)
context_idstr | None
上下文标识字段。
None
task_idstr | None
任务标识字段。
None
observed_contextlist[Msg]
`observed_context` 字段。
Field(default_factory=list)

属性详情Attribute Detail

session_id

str = Field(default_factory=_generate_id)

会话标识字段。声明为 str。

The session id field.

源码Source agentscope/state/_a2a_state.py:13

context_id

str | None = None

上下文标识字段。声明为 str | None。

The context id field.

源码Source agentscope/state/_a2a_state.py:16

task_id

str | None = None

任务标识字段。声明为 str | None。

The task id field.

源码Source agentscope/state/_a2a_state.py:19

observed_context

list[Msg] = Field(default_factory=list)

observed_context 字段。声明为 list[Msg]。

The observed context field.

源码Source agentscope/state/_a2a_state.py:22
基于官方固定版本源码静态生成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.