AS AgentScopeAPI 手册 / API Reference
类class agentscope.sop

SOP

class SOP
源码Source agentscope/sop/_schema.py:415–436

SOP,把复杂任务拆分为可执行步骤并驱动流程。位于 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
namestrSOP 名称。The SOP name.
stepslist[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
基于官方固定版本源码静态生成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.