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

SOPData

class SOPData(BaseModel)
源码Source agentscope/app/storage/_model/_sop.py:124–149

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

A procedure: its milestones, in order. Declared in agentscope.app.storage.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
namestr
名称字段。
Field(description='The name of the procedure.')
descriptionstr
`description` 字段。
Field(default='', description='What the procedure is for.')
stepslist[SOPStepDataV1]
步骤字段。
Field(min_length=1, description='Its milestones, in the order they must happen.')
workspace_grainSOPWorkspaceGrain
工作区粒度字段。
Field(default=SOPWorkspaceGrain.RUN, description='How many workspaces a run of this gets.')
session_settingsdict[str, SessionSettings]
会话设置字段。
Field(default_factory=dict, description='What each conversation is opened with, keyed by session key.')

属性详情Attribute Detail

name

str = Field(description='The name of the procedure.')

名称字段。声明为 str。

The name of the procedure.

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

description

str = Field(default='', description='What the procedure is for.')

description 字段。声明为 str。

What the procedure is for.

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

steps

list[SOPStepDataV1] = Field(min_length=1, description='Its milestones, in the order they must happen.')

步骤字段。声明为 list[SOPStepDataV1]。

Its milestones, in the order they must happen.

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

workspace_grain

SOPWorkspaceGrain = Field(default=SOPWorkspaceGrain.RUN, description='How many workspaces a run of this gets.')

工作区粒度字段。声明为 SOPWorkspaceGrain。

How many workspaces a run of this gets.

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

session_settings

dict[str, SessionSettings] = Field(default_factory=dict, description='What each conversation is opened with, keyed by session key.')

会话设置字段。声明为 dict[str, SessionSettings]。

What each conversation is opened with, keyed by session key.

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