mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
bug(core): Do not throw validation errors when building tools in nonInteractiveToolExecutor. (#6363)
This commit is contained in:
parent
91cd0db2b3
commit
d66ddcd82e
7 changed files with 305 additions and 60 deletions
|
|
@ -12,7 +12,6 @@ import {
|
|||
shutdownTelemetry,
|
||||
isTelemetrySdkInitialized,
|
||||
GeminiEventType,
|
||||
ToolErrorType,
|
||||
parseAndFormatApiError,
|
||||
} from '@google/gemini-cli-core';
|
||||
import { Content, Part, FunctionCall } from '@google/genai';
|
||||
|
|
@ -109,8 +108,6 @@ export async function runNonInteractive(
|
|||
console.error(
|
||||
`Error executing tool ${fc.name}: ${toolResponse.resultDisplay || toolResponse.error.message}`,
|
||||
);
|
||||
if (toolResponse.errorType === ToolErrorType.UNHANDLED_EXCEPTION)
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (toolResponse.responseParts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue