Show error instead of aborting if model fails to call tool (#7005)

This commit is contained in:
Antonio Scandurra 2025-08-25 19:58:04 +02:00 committed by GitHub
parent ade703944d
commit 7fa592f342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -370,7 +370,9 @@ class Session {
);
}
try {
const invocation = tool.build(args);
const confirmationDetails =
await invocation.shouldConfirmExecute(abortSignal);
@ -437,7 +439,6 @@ class Session {
});
}
try {
const toolResult: ToolResult = await invocation.execute(abortSignal);
const content = toToolCallContent(toolResult);