Skip to main content
Flows orchestrate multi-step AI tasks with automatic tracing.

@ai.flow() Decorator

Defines a flow.

Parameters

str | None
Flow name (defaults to function name)
type | dict | None
Input schema for validation
type | dict | None
Output schema for validation

Flow Execution

Nested Flows

FlowWrapper