Skip to main content

Crate motosan_workflow_model

Crate motosan_workflow_model 

Source
Expand description

§motosan-workflow-model

Data types, core traits, graph algorithms, loader, and templates for the motosan-workflow DAG-based agent workflow engine.

This crate is the foundation layer – everything except the execution engine.

Re-exports§

pub use traits::HumanInputProvider;
pub use traits::HumanResponse;
pub use traits::LlmClient;
pub use traits::LlmResponse;
pub use traits::Message;
pub use traits::MessageContent;
pub use traits::MessageRole;
pub use traits::NodeOutput;
pub use traits::ResumeToken;
pub use traits::StopReason;
pub use traits::TokenUsage;
pub use traits::ToolCallRequest;
pub use traits::ToolDefinition;
pub use traits::ToolExecutor;
pub use traits::WorkflowResult;
pub use traits::WorkflowStatus;
pub use error::Result;
pub use error::WorkflowError;
pub use event::WorkflowEvent;
pub use execution::workflow_fingerprint;
pub use execution::Checkpoint;
pub use execution::ErrorSummary;
pub use execution::ExecutionFilter;
pub use execution::ExecutionObserver;
pub use execution::ExecutionRecord;
pub use execution::ExecutionStats;
pub use execution::ExecutionStatus;
pub use execution::ExecutionStore;
pub use execution::LlmCallRecord;
pub use execution::NodeRecord;
pub use execution::NodeStatus;
pub use execution::ToolCallRecord;
pub use execution::TriggerType;
pub use execution::WorkflowStats;
pub use context::WorkflowContext;
pub use cost::estimate_cost;
pub use cost::CostEstimate;
pub use cost::ModelPricing;
pub use cost::NodeCostEstimate;
pub use node::AcpCapabilities;
pub use node::AcpFallback;
pub use node::AcpNodeConfig;
pub use node::AcpSessionMode;
pub use node::AgencySkill;
pub use node::AgentConfig;
pub use node::AsyncTransformFn;
pub use node::ConditionBranch;
pub use node::ConditionConfig;
pub use node::ConditionOp;
pub use node::FailureMode;
pub use node::FileAccessConfig;
pub use node::ForeachErrorMode;
pub use node::HumanConfig;
pub use node::IntoInputIds;
pub use node::LoopConfig;
pub use node::McpServerConfig;
pub use node::Node;
pub use node::NodeKind;
pub use node::RetryPolicy;
pub use node::SkillSelectStrategy;
pub use node::SubWorkflowConfig;
pub use node::SwarmCompletionCriteria;
pub use node::SwarmConfig;
pub use node::SwarmWorkerConfig;
pub use node::TransformConfig;
pub use node::TransformFn;
pub use loader::load_workflow;
pub use loader::load_workflow_from_str;
pub use loader::load_workflow_with_base;
pub use loader::Format;
pub use orch_config::OrchestratorConfig;
pub use state::diff_and_store;
pub use state::DiffResult;
pub use state::FileStateStore;
pub use state::StateStore;
pub use templates::builtin_workflow;
pub use templates::builtin_workflows;
pub use tool_registry::ToolRegistry;
pub use validation::validate_agents;
pub use validation::validate_condition_paths;
pub use validation::AgentIssue;
pub use validation::IssueSeverity;
pub use workflow::Edge;
pub use workflow::Workflow;
pub use workflow::WorkflowBuilder;

Modules§

context
cost
dag
error
event
execution
Execution recording data model for workflow history tracking.
loader
YAML/JSON workflow loader.
node
orch_config
Orchestrator configuration system.
schema
state
State diffing for recurring workflows.
templates
Built-in workflow templates embedded at compile time.
tool_registry
traits
validation
Agent validation utilities for workflow nodes.
workflow