From be6c6bfca437351d5fb4e805875c77603c940c0b Mon Sep 17 00:00:00 2001 From: Jochen Date: Fri, 21 Nov 2025 10:34:24 +1100 Subject: [PATCH] fix ref to system prompt --- crates/g3-core/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/g3-core/src/lib.rs b/crates/g3-core/src/lib.rs index 83aad85..5af0fd9 100644 --- a/crates/g3-core/src/lib.rs +++ b/crates/g3-core/src/lib.rs @@ -959,10 +959,10 @@ impl Agent { let provider = providers.get(None)?; let provider_has_native_tool_calling = provider.has_native_tool_calling(); let _ = provider; // Drop provider reference to avoid borrowing issues - + let system_prompt = if provider_has_native_tool_calling { // For native tool calling providers, use a more explicit system prompt - SYSTEM_PROMPT_FOR_NATIVE_TOOL_USE.to_string() + get_system_prompt_for_native(config.agent.allow_multiple_tool_calls) } else { // For non-native providers (embedded models), use JSON format instructions SYSTEM_PROMPT_FOR_NON_NATIVE_TOOL_USE.to_string()