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

ReplyContext

class ReplyContext(BaseModel)
源码Source agentscope/state/_state.py:182–206

当前智能体回复的上下文。位于 agentscope.state 包。

The context of the current agent reply. Declared in agentscope.state.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
reply_idstr
回复标识字段。
Field(default_factory=_generate_id)
cur_iterint
当前迭代次数字段。
0
structured_schemaType[BaseModel] | dict | None
结构化模式字段。
None
structured_outputdict | None
结构化输出字段。
None

属性详情Attribute Detail

reply_id

str = Field(default_factory=_generate_id)

回复标识字段。声明为 str。

The reply id field.

源码Source agentscope/state/_state.py:185

cur_iter

int = 0

当前迭代次数字段。声明为 int。

The cur iter field.

源码Source agentscope/state/_state.py:189

structured_schema

Type[BaseModel] | dict | None = None

结构化模式字段。声明为 Type[BaseModel] | dict | None。

The structured schema field.

源码Source agentscope/state/_state.py:193

structured_output

dict | None = None

结构化输出字段。声明为 dict | None。

The structured output field.

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