类class
agentscope.stateReplyContext
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_id | str | 回复标识字段。 | Field(default_factory=_generate_id) |
cur_iter | int | 当前迭代次数字段。 | 0 |
structured_schema | Type[BaseModel] | dict | None | 结构化模式字段。 | None |
structured_output | dict | None | 结构化输出字段。 | None |
属性详情Attribute Detail
reply_id
str = Field(default_factory=_generate_id)回复标识字段。声明为 str。
The reply id field.
源码Source
agentscope/state/_state.py:185cur_iter
int = 0当前迭代次数字段。声明为 int。
The cur iter field.
源码Source
agentscope/state/_state.py:189structured_schema
Type[BaseModel] | dict | None = None结构化模式字段。声明为 Type[BaseModel] | dict | None。
The structured schema field.
源码Source
agentscope/state/_state.py:193structured_output
dict | None = None结构化输出字段。声明为 dict | None。
The structured output field.
源码Source
agentscope/state/_state.py:205