feat: Added agent variables support for graph agents and improved script executor to use the same environment variables as normal agent tool calling for further flexibility

This commit is contained in:
2026-05-21 13:27:33 -06:00
parent 0bb312a85c
commit 558b764db8
6 changed files with 64 additions and 4 deletions
+1
View File
@@ -678,6 +678,7 @@ impl AgentConfig {
global_tools: graph.global_tools.clone(),
mcp_servers: graph.mcp_servers.clone(),
conversation_starters: graph.conversation_starters.clone(),
variables: graph.variables.clone(),
can_spawn_agents: graph.has_agent_node(),
max_concurrent_agents: default_max_concurrent_agents(),
max_agent_depth: default_max_agent_depth(),
+3 -1
View File
@@ -14,7 +14,9 @@ pub(crate) mod todo;
mod tool_scope;
mod update;
pub use self::agent::{Agent, AgentVariables, complete_agent_variables, list_agents};
pub use self::agent::{
Agent, AgentVariable, AgentVariables, complete_agent_variables, list_agents,
};
#[allow(unused_imports)]
pub use self::app_config::AppConfig;
#[allow(unused_imports)]