Expand description
Core library surface for tinyflows — a Rust-native workflow engine.
tinyflows models an automation as a model::WorkflowGraph: a directed graph
of typed model::Nodes connected by model::Edges. A compiler::compile
step validates the graph and (from stage A1) lowers it onto the
tinyagents state-graph engine, which
the engine::run entry point drives.
The crate is deliberately host-agnostic: anything that touches the outside
world — LLM calls, integration tools, HTTP, code execution, persistence — is
expressed through the caps capability traits that the embedding
application implements.
assert_eq!(tinyflows::product_name(), "tinyflows");Modules§
- caps
- Host-injected capability traits.
- compiler
- Compiles a
WorkflowGraphinto a runnable handle. - data
- The runtime data model: the item-based currency that flows between nodes.
- engine
- Drives a
CompiledWorkflowto completion by lowering it ontotinyagents. - error
- Error types shared across validation, compilation, and execution.
- expr
- Expression evaluation for node config values (the
=-prefix convention). - migrate
- Load-time migration of persisted
WorkflowGraphJSON. - model
- The tinyflows workflow definition model: a directed graph of typed nodes.
- nodes
- Node execution: the
NodeExecutortrait and per-kind implementations. - observability
- Run/step observability records and the host-facing
RunObserverhook. - validate
- Structural validation for
WorkflowGraphs, run before compilation.
Constants§
- CRATE_
NAME - The crate name published to crates.io.
- VERSION
- The crate version from
Cargo.toml.
Functions§
- product_
name - Returns the user-facing product name.