Skip to main content

Module engine

Module engine 

Source
Expand description

The core Engine – orchestrates workflow execution and persistence.

The engine ties together a RunStore for persistence, an AgentProvider for AI operations, and a registry of WorkflowHandlers.

Handlers are Rust-native: steps can reference previous outputs, use native if/else/match for conditional branching, and execute in parallel.

Structs§

Engine
The workflow orchestration engine.
EnqueueOptions
Optional settings for Engine::enqueue_handler_with_options.
WorkflowResult
Result of a workflow execution, carrying the final Run and per-step metrics collected during execution.

Enums§

ExecutionMode
Where a run resumes once an approval, a human input or an escalation resolves the gate it was suspended on.

Functions§

chain_root
The root run of the chain a sub-workflow child run belongs to.