From 60493728a011e0f2c4d63be3ded198ac2f48c7d6 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Fri, 20 Feb 2026 11:38:24 -0700 Subject: [PATCH] fix: Inject agent variables into environment variables for global tool calls when invoked from agents to modify global tool behavior --- src/function/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/function/mod.rs b/src/function/mod.rs index f9f230c..4d86e53 100644 --- a/src/function/mod.rs +++ b/src/function/mod.rs @@ -1064,7 +1064,7 @@ impl ToolCall { function_name.clone(), function_name, vec![], - Default::default(), + agent.variable_envs(), )) } }