flow() API Flow builder, workflow graph, and mermaid APIs. go api api/flow packages/go/axir-api.json api flow() API

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.

FieldValue
Kindfunction
Ax conceptflow
API sectionFlow
Formaxllm.NewFlow(optionsOrMermaid, bindings...)
Returns*AxFlow

Important Options

  • nodes
  • execute mappers
  • conditions
  • cache
  • returns
  • Mermaid roundtrip

Examples

Go
wf := axllm.NewFlow(nil)

Full reference

axllm.AxFlow

Workflow graph with Core-owned planning, cache keys, state merge, child aggregation, optimization, and returns projection.

FieldValue
Kindtype
Ax conceptAxFlow
API sectionFlow
Formaxllm.NewFlow(optionsOrMermaid, bindings...)
Returnsflow program

Important Options

  • steps
  • state
  • parallel groups
  • returns

Full reference

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.

FieldValue
Kindmethod
Ax conceptowned_program_factory
API sectionFlow
FormAxOwnedProgramFactory.OwnedWorkerFactory()
Returnsworker factory or unavailable

Important Options

  • owned memory
  • per-node controls
  • deterministic result merge
  • cooperative cancellation

Full reference

Full Reference

Open the full Go reference. This page highlights the flow symbols most relevant to everyday use.

Docs