This commit is contained in:
Rob Lourens
2024-09-20 18:59:27 -07:00
parent 1c012edb7d
commit ac180d2bd8

View File

@ -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);
}