39 lines
1.2 KiB
Rust
39 lines
1.2 KiB
Rust
//! Graph-based agent orchestration. Declarative YAML workflows over a shared
|
|
//! JSON state, composed of agent/script/approval/input/end nodes.
|
|
|
|
pub mod agent;
|
|
pub mod dispatch;
|
|
pub mod executor;
|
|
pub mod llm;
|
|
pub mod logging;
|
|
pub mod parser;
|
|
pub mod script;
|
|
pub mod state;
|
|
pub mod structured;
|
|
pub mod types;
|
|
pub mod user_interaction;
|
|
pub mod validator;
|
|
|
|
pub use agent::AgentNodeExecutor;
|
|
pub use dispatch::{active_agent_graph_name, run_active_agent_graph};
|
|
pub use executor::GraphExecutor;
|
|
pub use llm::LlmNodeExecutor;
|
|
pub use logging::GraphLogger;
|
|
pub use parser::{GraphParser, agent_has_graph};
|
|
pub use script::ScriptExecutor;
|
|
pub use state::{StateManager, StateRepresentation};
|
|
pub use types::{
|
|
AgentNode, ApprovalNode, EndNode, Graph, GraphSettings, GraphState, InputNode, LlmNode, Node,
|
|
NodeType, ScriptNode,
|
|
};
|
|
pub use user_interaction::{ApprovalNodeExecutor, InputNodeExecutor};
|
|
pub use validator::{GraphValidator, ValidationError, ValidationResult};
|
|
|
|
pub const GRAPH_SCHEMA_VERSION: &str = "1.0";
|
|
|
|
pub const DEFAULT_MAX_LOOP_ITERATIONS: usize = 100;
|
|
|
|
/// Serialized-state size above which scripts receive state via a temp file
|
|
/// instead of an env var.
|
|
pub const MAX_STATE_SIZE_BYTES: usize = 32 * 1024;
|