Source:
docs/manual/graph.mdThis page is generated by
site/scripts/sync-manual-docs.mjs.
Graph DSL
The graph DSL defines structured execution flows as directed acyclic graphs (DAGs). Nodes represent agent tasks, routing decisions, or data transformations; edges represent data dependencies and control flow. Graphs compile to Temporal workflows with parallel branches and join semantics.
Source: internal/graph/*
Purpose
Provides a structured execution graph with branching, routing, and joins that compile to Temporal workflows.
Graph Flow
Map-Reduce Pattern
Join Semantics
Key Components
- DSL builder:
internal/graph/dsl.go - Workflow engine:
internal/graph/workflow.go - Conditions:
internal/graph/conditions.go - LLM activity:
internal/graph/llm_activity.go
CLI
cmd/graph-workerstarts the graph worker.cmd/graph-runexecutes a sample graph.cmd/graph-run-llmexecutes an LLM-driven graph.cmd/graph-queryqueries graph state.cmd/graph-approveapproves graph steps.