From ac180d2bd8de541cf6a144e7480f705bf42fb90b Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Fri, 20 Sep 2024 18:59:27 -0700 Subject: [PATCH] Fix --- chat-sample/src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat-sample/src/extension.ts b/chat-sample/src/extension.ts index 9a6921bc..91510bcd 100644 --- a/chat-sample/src/extension.ts +++ b/chat-sample/src/extension.ts @@ -125,7 +125,7 @@ function registerChatParticipant(context: vscode.ExtensionContext) { // NOTE that the result of calling a function is a special content type of a USER-message const message = vscode.LanguageModelChatMessage.User(''); - message.content2 = [new vscode.LanguageModelChatMessageToolResultPart(toolCall.call.toolCallId, (await toolCall.result).toString())]; + message.content2 = [new vscode.LanguageModelChatMessageToolResultPart(toolCall.call.toolCallId, (await toolCall.result)['text/plain'])]; messages.push(message); }