类class
agentscope.app.storageSOPStepDataV1
class SOPStepDataV1(BaseModel)
源码Source
agentscope/app/storage/_model/_sop.py:73–97SOP 步骤数据 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 |
|---|---|---|---|
version | Literal['v1'] | 版本字段。 | 'v1' |
subject | str | 主题字段。 | Field(description='A brief, actionable name.') |
description | str | `description` 字段。 | Field(description='What this step must achieve — the destination.') |
executor | SOPAgentRef | 执行器字段。 | Field(description='Who does the work.') |
verifier | SOPVerifier | None | 校验器字段。 | Field(default=None, description='Who judges it. ``None`` accepts whatever comes back.') |
max_attempts | int | 最大尝试次数字段。 | 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:78subject
str = Field(description='A brief, actionable name.')主题字段。声明为 str。
A brief, actionable name.
源码Source
agentscope/app/storage/_model/_sop.py:80description
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:82executor
SOPAgentRef = Field(description='Who does the work.')执行器字段。声明为 SOPAgentRef。
Who does the work.
源码Source
agentscope/app/storage/_model/_sop.py:86verifier
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:88max_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