类class
agentscope.sopSOPStepRunState
class SOPStepRunState(BaseModel)
源码Source
agentscope/sop/_state.py:68–101SOP 步骤运行状态,把复杂任务拆分为可执行步骤并驱动流程。位于 agentscope.sop 包。
The engine writes :attr:given; the step keeps the other three
honest. To remember more, subclass this and name the subclass in
:attr:~._schema.SOPStepBase.state_type — extra fields survive a
round trip through storage.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
model_config | — | 模型配置字段。 | ConfigDict(extra='allow') |
phase | SOPPhase | 阶段字段。 | SOPPhase.PENDING |
given | list[Msg] | `given` 字段。 | Field(default_factory=list) |
submission | list[TextBlock | DataBlock] | None | `submission` 字段。 | None |
verifications | list[VerificationResult] | `verifications` 字段。 | Field(default_factory=list) |
属性详情Attribute Detail
model_config
= ConfigDict(extra='allow')模型配置字段。
The model config field.
源码Source
agentscope/sop/_state.py:77phase
SOPPhase = SOPPhase.PENDING阶段字段。声明为 SOPPhase。
The phase field.
源码Source
agentscope/sop/_state.py:79given
list[Msg] = Field(default_factory=list)given 字段。声明为 list[Msg]。
The given field.
源码Source
agentscope/sop/_state.py:82submission
list[TextBlock | DataBlock] | None = Nonesubmission 字段。声明为 list[TextBlock | DataBlock] | None。
The submission field.
源码Source
agentscope/sop/_state.py:89verifications
list[VerificationResult] = Field(default_factory=list)verifications 字段。声明为 list[VerificationResult]。
The verifications field.
源码Source
agentscope/sop/_state.py:99