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

SOPStepRunState

class SOPStepRunState(BaseModel)
源码Source agentscope/sop/_state.py:68–101

SOP 步骤运行状态,把复杂任务拆分为可执行步骤并驱动流程。位于 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')
phaseSOPPhase
阶段字段。
SOPPhase.PENDING
givenlist[Msg]
`given` 字段。
Field(default_factory=list)
submissionlist[TextBlock | DataBlock] | None
`submission` 字段。
None
verificationslist[VerificationResult]
`verifications` 字段。
Field(default_factory=list)

属性详情Attribute Detail

model_config

 = ConfigDict(extra='allow')

模型配置字段。

The model config field.

源码Source agentscope/sop/_state.py:77

phase

SOPPhase = SOPPhase.PENDING

阶段字段。声明为 SOPPhase。

The phase field.

源码Source agentscope/sop/_state.py:79

given

list[Msg] = Field(default_factory=list)

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

The given field.

源码Source agentscope/sop/_state.py:82

submission

list[TextBlock | DataBlock] | None = None

submission 字段。声明为 list[TextBlock | DataBlock] | None。

The submission field.

源码Source agentscope/sop/_state.py:89

verifications

list[VerificationResult] = Field(default_factory=list)

verifications 字段。声明为 list[VerificationResult]。

The verifications field.

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