flow() API
Flow builder, workflow graph, execution plan, and mermaid APIs.
Most Used
flow
Create an AxFlow program graph or compile the portable Mermaid shorthand.
| Field | Value |
|---|---|
| Kind | function |
| Ax concept | flow |
| API section | Flow |
| Form | flow(options=None) / flow(mermaid, bindings=None) |
| Returns | AxFlow |
Important Options
nodesexecute mappersconditionscachereturnsMermaid roundtrip
Examples
wf = flow().node("qa", ax("question:string -> answer:string"))AxFlow
Workflow graph with Core-owned planning, cache keys, state merge, child aggregation, optimization, and returns projection.
| Field | Value |
|---|---|
| Kind | type |
| Ax concept | AxFlow |
| API section | Flow |
| Form | AxFlow(options=None, bindings=None) |
| Returns | flow program |
Important Options
stepsstateparallel groupsreturns
Full Reference
Open the full Python reference. This page highlights the flow symbols most relevant to everyday use.