类class
agentscope.sopSOP
class SOP
源码Source
agentscope/sop/_schema.py:415–436SOP,把复杂任务拆分为可执行步骤并驱动流程。位于 agentscope.sop 包。
A fixed sequence of milestones, each verified before the next. Declared in agentscope.sop.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
def __init__(name: str, steps: list[SOPStepBase], description: str = '') -> None | 初始化 `SOP` 实例。 Initialize the procedure. |
构造器详情Constructor Detail
SOP
def __init__(name: str, steps: list[SOPStepBase], description: str = '') -> None
初始化 SOP 实例。
Initialize the procedure.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | str | SOP 名称。The SOP name. |
steps | list[SOPStepBase] | 步骤(类型 `list[SOPStepBase]`)。The steps, in the order they run. |
description默认default '' | str | 描述(类型 `str`)。What this procedure is for. |
源码Source
agentscope/sop/_schema.py:418–436