style: Cleaned up all graph agent code

This commit is contained in:
2026-05-18 13:46:52 -06:00
parent fce08140bf
commit f14c006d28
23 changed files with 560 additions and 652 deletions
+1 -17
View File
@@ -1,6 +1,3 @@
//! 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;
@@ -15,26 +12,13 @@ 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 rag::RagNodeExecutor;
pub use script::ScriptExecutor;
pub use state::{StateManager, StateRepresentation};
pub use types::{
AgentNode, ApprovalNode, EndNode, Graph, GraphSettings, GraphState, InputNode, LlmNode, Node,
NodeType, RagNode, ScriptNode,
};
pub use user_interaction::{ApprovalNodeExecutor, InputNodeExecutor};
pub use validator::{GraphValidator, ValidationError, ValidationResult};
pub use types::{Graph, NodeType};
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;