AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.storage

SOPStepDataV1

class SOPStepDataV1(BaseModel)
源码Source agentscope/app/storage/_model/_sop.py:73–97

SOP 步骤数据 V 1,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包。

One milestone, as :class:~agentscope.sop.SOPStep runs it. Declared in agentscope.app.storage.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
versionLiteral['v1']
版本字段。
'v1'
subjectstr
主题字段。
Field(description='A brief, actionable name.')
descriptionstr
`description` 字段。
Field(description='What this step must achieve — the destination.')
executorSOPAgentRef
执行器字段。
Field(description='Who does the work.')
verifierSOPVerifier | None
校验器字段。
Field(default=None, description='Who judges it. ``None`` accepts whatever comes back.')
max_attemptsint
最大尝试次数字段。
Field(default=3, gt=0, description='How many refusals before the run gives up on it.')

属性详情Attribute Detail

version

Literal['v1'] = 'v1'

版本字段。声明为 Literal['v1']。

The version field.

源码Source agentscope/app/storage/_model/_sop.py:78

subject

str = Field(description='A brief, actionable name.')

主题字段。声明为 str。

A brief, actionable name.

源码Source agentscope/app/storage/_model/_sop.py:80

description

str = Field(description='What this step must achieve — the destination.')

description 字段。声明为 str。

What this step must achieve — the destination.

源码Source agentscope/app/storage/_model/_sop.py:82

executor

SOPAgentRef = Field(description='Who does the work.')

执行器字段。声明为 SOPAgentRef。

Who does the work.

源码Source agentscope/app/storage/_model/_sop.py:86

verifier

SOPVerifier | None = Field(default=None, description='Who judges it. ``None`` accepts whatever comes back.')

校验器字段。声明为 SOPVerifier | None。

Who judges it.

源码Source agentscope/app/storage/_model/_sop.py:88

max_attempts

int = Field(default=3, gt=0, description='How many refusals before the run gives up on it.')

最大尝试次数字段。声明为 int。

How many refusals before the run gives up on it.

源码Source agentscope/app/storage/_model/_sop.py:93
基于官方固定版本源码静态生成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.