mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
@@ -557,7 +557,9 @@ export class LanguageModelToolsService extends Disposable implements ILanguageMo
|
||||
prepareTimeMs: prepareTimeWatch?.elapsed(),
|
||||
invocationTimeMs: invocationTimeWatch?.elapsed(),
|
||||
});
|
||||
this._logService.error(`[LanguageModelToolsService#invokeTool] Error from tool ${dto.toolId} with parameters ${JSON.stringify(dto.parameters)}:\n${toErrorMessage(err, true)}`);
|
||||
if (!isCancellationError(err)) {
|
||||
this._logService.error(`[LanguageModelToolsService#invokeTool] Error from tool ${dto.toolId} with parameters ${JSON.stringify(dto.parameters)}:\n${toErrorMessage(err, true)}`);
|
||||
}
|
||||
|
||||
toolResult ??= { content: [] };
|
||||
toolResult.toolResultError = err instanceof Error ? err.message : String(err);
|
||||
|
||||
Reference in New Issue
Block a user