← 返回
未分类 中文

Workflow Orchestrator

Visual workflow builder for orchestrating multi-agent systems with branching, parallel execution, error handling, and retry logic. Use when building agent pi...
可视化工作流构建器,用于编排多智能体系统,支持分支、并行执行、错误处理和重试逻辑。适用于构建代理...
evezart
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 296
下载
💾 1
安装
1
版本
#latest

概述

Workflow Orchestrator

Build and run multi-agent workflows with DAG execution, branching, and error handling.

Quick Start

from orchestrator import Workflow, Step, Branch, Runner

wf = Workflow("data-pipeline")
wf.add_step(Step("fetch", agent="scraper", action="fetch_url", params={"url": "https://example.com"}))
wf.add_step(Step("extract", agent="parser", action="extract_text", depends_on=["fetch"]))
wf.add_step(Step("summarize", agent="writer", action="summarize", depends_on=["extract"]))
wf.add_step(Step("translate", agent="writer", action="translate", depends_on=["extract"]))
wf.add_step(Step("publish", agent="publisher", action="send", depends_on=["summarize", "translate"]))

runner = Runner()
result = runner.execute(wf)

DAG Execution Model

fetch → extract → summarize → publish
                 → translate ↗

Steps run in parallel when their dependencies are met. The publish step waits for both summarize and translate.

Step Definition

Step(
    name="unique_step_name",
    agent="agent_id",          # Which agent executes this
    action="tool_name",        # What action to perform
    params={},                 # Input parameters
    depends_on=[],             # Wait for these steps first
    retry=3,                   # Max retries on failure
    timeout_sec=300,           # Step timeout
    on_failure="skip",         # "skip", "retry", "abort", "fallback"
    fallback_step="plan_b",    # Run this step on failure
    condition="$.fetch.status == 200",  # Conditional execution
)

Features

  • Parallel execution: Steps with satisfied dependencies run concurrently
  • Conditional branching: JSONPath conditions determine which branches execute
  • Retry with backoff: Configurable retry count and exponential backoff
  • Timeout handling: Steps that exceed timeout are killed and handled per on_failure
  • Fallback steps: Alternative steps run when the primary fails
  • Live status: Query workflow state at any point during execution
  • Error propagation: Configure whether failures bubble up or are contained

Monitoring

status = runner.status(workflow_id)
# {"running": 2, "completed": 3, "failed": 0, "pending": 1}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-13 06:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Semantic Code Search

evezart
语义搜索引擎,用于代码库,理解意图并找出功能相似的代码,适用于按含义而非文本搜索代码的场景。
★ 0 📥 287

Agent Memory Layer

evezart
可扩展的AI代理记忆系统,支持短期、长期和情景记忆,用于构建代理记忆持久化和对话上下文管理。
★ 0 📥 356

Cross Domain Engine

evezart
利用EVEZ OODA循环架构发现不同研究领域的隐藏关联,用于寻找跨领域新关联、检测...
★ 0 📥 301