Get ToolRegistry from config instead of passing it (#6592)

This commit is contained in:
Tommaso Sciortino 2025-08-19 16:27:15 -07:00 committed by GitHub
parent f1575f6d8d
commit a01d411c5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 29 deletions

View file

@ -8,7 +8,6 @@ import {
Config,
ToolCallRequestInfo,
executeToolCall,
ToolRegistry,
shutdownTelemetry,
isTelemetrySdkInitialized,
GeminiEventType,
@ -39,7 +38,6 @@ export async function runNonInteractive(
});
const geminiClient = config.getGeminiClient();
const toolRegistry: ToolRegistry = config.getToolRegistry();
const abortController = new AbortController();
let currentMessages: Content[] = [
@ -100,7 +98,6 @@ export async function runNonInteractive(
const toolResponse = await executeToolCall(
config,
requestInfo,
toolRegistry,
abortController.signal,
);