AS AgentScopeAPI 手册 / API Reference
功能域Functional domain

规划与工作流Planning & workflows

把复杂目标拆解成步骤并驱动执行:SOP 状态机、目标验证流水线、团队流水线等。适合长任务、可审计流程和需要人工介入的业务。Break complex goals into steps: SOP state machines, verifier pipelines and team pipelines for long-running, auditable work.

21类型总数types total
20Python
1Java
3学习锚点learning anchors

心智模型Mental model

规划层把复杂目标拆成步骤,用流水线、工作流或 SOP 编排多个智能体/工具,并维护步骤状态与失败恢复。Planning decomposes goals into steps and orchestrates agents or tools through pipelines, workflows or SOPs with step state and recovery.

先学什么What to learn first

  • 流水线适合固定拓扑,SOP 适合需要人工审批和状态机控制的流程。Pipelines fit fixed topologies; SOPs fit state machines with human approval.
  • 每一步都要有输入输出契约,否则失败后无法重放。Every step needs an input/output contract so it can be replayed after failure.
  • 规划结果要可观测:记录步骤、耗时、失败原因和重试次数。Make plans observable: record steps, latency, failure causes and retries.

生产常见坑Production pitfalls

  • 让模型自由生成无限步骤,缺少预算和终止条件。Unbounded model-generated steps without budget or termination.
  • 步骤失败后从头重跑,产生重复副作用。Restarting a failed workflow from scratch duplicates side effects.

进入对应闯关单元Practice this domain →

域内图谱Domain map

点击节点打开 API 页面;拖拽平移,滚轮缩放。Click a node to open its API page. Drag to pan, scroll to zoom.

Python Java

Python API 集Python API set 20

归入本功能域的全部 Python 公开类型,按所属包分组。Every public Python type classified into this domain, grouped by owning package.

agentscope.sop9
AgentLikeclass智能体 Like,把复杂任务拆分为可执行步骤并驱动流程。
SOPclassSOP,把复杂任务拆分为可执行步骤并驱动流程。
SOPEngineclassSOP 引擎,把复杂任务拆分为可执行步骤并驱动流程。
SOPPhaseclassSOP 阶段,把复杂任务拆分为可执行步骤并驱动流程。
SOPRunStateclassSOP 运行状态,把复杂任务拆分为可执行步骤并驱动流程。
SOPStepclassSOP 步骤,把复杂任务拆分为可执行步骤并驱动流程。
SOPStepBaseclassSOP 步骤基类,把复杂任务拆分为可执行步骤并驱动流程。
SOPStepRunStateclassSOP 步骤运行状态,把复杂任务拆分为可执行步骤并驱动流程。
VerificationResultclassVerification 结果,把复杂任务拆分为可执行步骤并驱动流程。
agentscope.app.storage8
AgentVerifierclass智能体校验器,在多次调用之间保存和恢复会话与记忆数据。
HumanVerifierclass人工校验器,在多次调用之间保存和恢复会话与记忆数据。
SOPAgentRefclassSOP 智能体引用,在多次调用之间保存和恢复会话与记忆数据。
SOPDataclassSOP 数据,在多次调用之间保存和恢复会话与记忆数据。
SOPRecordclassSOP 记录,在多次调用之间保存和恢复会话与记忆数据。
SOPRunRecordclassSOP 运行记录,在多次调用之间保存和恢复会话与记忆数据。
SOPStepDataV1classSOP 步骤数据 V 1,在多次调用之间保存和恢复会话与记忆数据。
SOPWorkspaceGrainclassSOP 工作区粒度,在多次调用之间保存和恢复会话与记忆数据。
agentscope.pipeline2
GoalPipelineclass目标流水线,把复杂任务拆分为可执行步骤并驱动流程。
PipelineProtocolclass流水线协议,把复杂任务拆分为可执行步骤并驱动流程。
agentscope.app.middleware1
SOPStepSubmitMiddlewareclassSOP 步骤提交中间件,在智能体执行流程中提供横切扩展。

Java API 集Java API set 1

归入本功能域的全部 Java 公开类型,按包分组并标注构件。Every public Java type classified into this domain, grouped by package with its artifact.

io.agentscope.harness.agent.workspace.plan1
PlanModeManagerclassagentscope-harness计划模式管理器,把复杂任务拆分为可执行步骤并驱动流程。

Python ↔ Java 对照Python ↔ Java

Java

SaaPlanPlanAgentPlan

两套实现共享同一概念模型,但在并发(async/await 与 Reactor)、打包(wheel 模块与 Maven 构件)和生命周期 API 上存在差异。需要精确签名时请使用 API 全景。The two implementations follow the same conceptual model but differ in concurrency (async/await vs Reactor), packaging (wheel modules vs Maven artifacts) and lifecycle APIs. Use the full API map to locate exact signatures.

打开 API 全景Open full API map →

基于官方固定版本源码静态生成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.