Skip to main content

Crate tinyflows

Crate tinyflows 

Source
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 WorkflowGraph into a runnable handle.
data
The runtime data model: the item-based currency that flows between nodes.
engine
Drives a CompiledWorkflow to completion by lowering it onto tinyagents.
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 WorkflowGraph JSON.
model
The tinyflows workflow definition model: a directed graph of typed nodes.
nodes
Node execution: the NodeExecutor trait and per-kind implementations.
observability
Run/step observability records and the host-facing RunObserver hook.
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.