flow() API
Flow builder, workflow graph, execution plan, and mermaid APIs.
Most Used
axllm.NewFlow
Create an AxFlow program graph or compile the portable Mermaid shorthand.
| Field | Value |
|---|---|
| Kind | function |
| Ax concept | flow |
| API section | Flow |
| Form | axllm.NewFlow(optionsOrMermaid, bindings...) |
| Returns | *AxFlow |
Important Options
nodesexecute mappersconditionscachereturnsMermaid roundtrip
Examples
wf := axllm.NewFlow(nil)axllm.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 | axllm.NewFlow(optionsOrMermaid, bindings...) |
| Returns | flow program |
Important Options
stepsstateparallel groupsreturns
Advanced / internals / full reference
AxOwnedProgramFactory.OwnedWorkerFactory
Optional factory for independent program state. Parallel groups require both client and program factories; otherwise the whole group runs serially with a fallback trace.
| Field | Value |
|---|---|
| Kind | method |
| Ax concept | owned_program_factory |
| API section | Flow |
| Form | AxOwnedProgramFactory.OwnedWorkerFactory() |
| Returns | worker factory or unavailable |
Important Options
owned memoryper-node controlsdeterministic result mergecooperative cancellation
Full Reference
Open the full Go reference. This page highlights the flow symbols most relevant to everyday use.