类class
agentscope.app.storageSOPData
class SOPData(BaseModel)
源码Source
agentscope/app/storage/_model/_sop.py:124–149SOP 数据,在多次调用之间保存和恢复会话与记忆数据。位于 agentscope.app.storage 包。
A procedure: its milestones, in order. Declared in agentscope.app.storage.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
name | str | 名称字段。 | Field(description='The name of the procedure.') |
description | str | `description` 字段。 | Field(default='', description='What the procedure is for.') |
steps | list[SOPStepDataV1] | 步骤字段。 | Field(min_length=1, description='Its milestones, in the order they must happen.') |
workspace_grain | SOPWorkspaceGrain | 工作区粒度字段。 | Field(default=SOPWorkspaceGrain.RUN, description='How many workspaces a run of this gets.') |
session_settings | dict[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:127description
str = Field(default='', description='What the procedure is for.')description 字段。声明为 str。
What the procedure is for.
源码Source
agentscope/app/storage/_model/_sop.py:129steps
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:134workspace_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:139session_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