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.walk— generic BFS traversal over aFlowDefinition.- [
validate] — spec conformance checks. store— directory-backed CRUD (enabled by the defaultfsfeature).log— flow execution log entries (enabled by thelogfeature).
Re-exports§
pub use model::CoreNodeType;pub use model::FlowDefinition;pub use model::FlowEdge;pub use model::FlowNode;pub use model::FlowNodeType;pub use model::FlowSummary;pub use model::SavedFlow;pub use model::SPEC_VERSION;pub use validate::validate;pub use validate::ValidationError;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§
- log
log - Flow execution log entries.
- model
- Core data model for the Flow specification.
- store
fs - Directory-backed CRUD for
SavedFlowdocuments. - validate
- Spec-conformance validation for a
SavedFloworFlowDefinition. - walk
- Generic graph traversal over a
FlowDefinition.