The code is the graph
Blog post from Pydantic
The author argues that agent workflows are better expressed as ordinary typed code than as specialized graph-library nodes and edges, because standard language constructs already represent branching, looping, fan-out, joins, retries, and state through the call stack. Graph visualizations remain useful for design and observability, but the author contends they should describe code rather than serve as the execution model. A central claim is that graph systems struggle to simultaneously provide type safety, parallel execution, and durable snapshots, particularly when concurrent nodes mutate shared state and require semantic merge rules that type checkers cannot fully validate. The proposed alternative uses Python async functions for orchestration, Temporal for durable replay outside a sandbox, and Monty, a sandboxed Python interpreter, for safely executing model-written workflows with snapshotting at registered external calls. In this model, agents write and type-check their own workflow code, while humans focus on defining objectives, constraints, evaluations, and feedback systems; execution traces can then provide a graph-like record of the workflow that actually occurred.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Observability | 2 | 3,086 | 746 | 186 | +11% |
| AI Agents | 1 | 7,036 | 1,672 | 272 | +25% |
| Multi-agent systems | 1 | 326 | 119 | 63 | -30% |
| OpenTelemetry | 1 | 860 | 177 | 65 | +21% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.