feat: initial agent graph scaffolding

This commit is contained in:
2026-05-12 14:13:03 -06:00
parent c3ebceb76d
commit dfd1334dec
7 changed files with 1036 additions and 9 deletions
+19
View File
@@ -0,0 +1,19 @@
//! Graph-based agent orchestration. Declarative YAML workflows over a shared
//! JSON state, composed of agent/script/approval/input/end nodes.
pub mod parser;
pub mod types;
pub use parser::{GraphParser, agent_has_graph, load_agent_graph};
pub use types::{
AgentNode, ApprovalNode, EndNode, Graph, GraphSettings, GraphState, InputNode, Node, NodeType,
ScriptNode,
};
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;