Expand description
§metalcraft-flows
Reference types and helpers for the Flow specification — a serializable, human-authored DAG format for AI agent workflows.
See SPEC.md
for the formal wire-format specification.
§Modules
model— core types:FlowDefinition,FlowNode,FlowEdge,SavedFlow,FlowNodeType,CoreNodeType.nodes— typed views over each node type’sdatapayload.requires— declared integration-pack / tool dependencies and their validation and satisfaction checks.walk— graph traversal: BFS reachability and handle-aware stepping.eval— deterministic predicate evaluation forconditionalnodes.template—{{path}}interpolation for string fields.state— the runningvariablesbag and dotted-path helpers.validate— spec conformance checks.store— directory-backed CRUD (enabled by the defaultfsfeature).log— flow execution log entries (enabled by thelogfeature).
Re-exports§
pub use eval::evaluate;pub use eval::Operator;pub use model::CoreNodeType;pub use model::FlowDefinition;pub use model::FlowEdge;pub use model::FlowNode;pub use model::FlowNodeType;pub use model::FlowScheduleSpec;pub use model::FlowSummary;pub use model::SavedFlow;pub use model::ScheduleTrigger;pub use model::SPEC_VERSION;pub use model::SUPPORTED_SPEC_VERSIONS;pub use nodes::BRANCH_ERROR_HANDLE;pub use requires::check_requirements;pub use requires::check_tools;pub use requires::derive_requires;pub use requires::AvailablePack;pub use requires::PackRequirement;pub use requires::Requires;pub use requires::Unmet;pub use state::Variables;pub use template::resolve as resolve_template;pub use validate::validate;pub use validate::ValidationError;pub use walk::next_by_handle;pub use walk::walk_bfs;pub use store::delete_flow;fspub use store::list_flows;fspub use store::load_flow;fspub use store::save_flow;fspub use log::append_flow_log;logpub use log::load_flow_logs;logpub use log::FlowLogEntry;log
Modules§
- eval
- Deterministic predicate evaluation for
conditionalnodes. - log
log - Flow execution log entries.
- model
- Core data model for the Flow specification.
- nodes
- Typed views over each core node type’s
datapayload. - requires
- Declared dependencies of a flow: the integration packs and tool surface it needs in order to run.
- state
- The running
variablesstate threaded through a flow, plus dotted-path helpers shared withcrate::template. - store
fs - Directory-backed CRUD for
SavedFlowdocuments. - template
{{path}}interpolation for string fields in a flow.- validate
- Spec-conformance validation for a
SavedFloworFlowDefinition. - walk
- Generic graph traversal over a
FlowDefinition.