Skip to content

builder

diapason.workflow.builder

WorkflowBuilder — fluent API for constructing workflows.

WorkflowBuilder

Fluent API for building workflow graphs.

Example

wf = (WorkflowBuilder("research_pipeline") .add_agent("researcher", agent="orchestrator", tools=["web_search"]) .add_agent("summarizer", agent="simple") .connect("researcher", "summarizer") .build())

sequential(*node_ids)

Connect nodes in sequential order.