feat: Full support for map node types

This commit is contained in:
2026-05-20 15:15:58 -06:00
parent de2a8dcf89
commit ad7f71df56
5 changed files with 229 additions and 30 deletions
+13
View File
@@ -3,6 +3,7 @@ pub mod dispatch;
pub mod executor;
pub mod llm;
pub mod logging;
pub mod map;
pub mod parser;
pub mod rag;
pub mod reducer;
@@ -14,6 +15,7 @@ pub mod types;
pub mod user_interaction;
pub mod validator;
use serde_json::Value;
pub use dispatch::{active_agent_graph_name, run_active_agent_graph};
pub use executor::GraphExecutor;
pub use parser::{GraphParser, agent_has_graph};
@@ -24,3 +26,14 @@ pub const GRAPH_SCHEMA_VERSION: &str = "1.0";
pub const DEFAULT_MAX_LOOP_ITERATIONS: usize = 100;
pub const MAX_STATE_SIZE_BYTES: usize = 32 * 1024;
pub (in crate::graph) fn type_name(value: &Value) -> &'static str {
match value {
Value::Null => "null",
Value::Bool(_) => "bool",
Value::Number(_) => "number",
Value::String(_) => "string",
Value::Array(_) => "array",
Value::Object(_) => "object",
}
}