Remove unused variable toolResults

This commit is contained in:
Jean Rigotti 2025-04-02 11:40:53 -03:00
commit 266c3b3baf

View file

@ -100,7 +100,6 @@ class MCPClient {
// Process response and handle tool calls
const finalText = [];
const toolResults = [];
for (const content of response.content) {
if (content.type === "text") {
@ -114,7 +113,6 @@ class MCPClient {
name: toolName,
arguments: toolArgs,
});
toolResults.push(result);
finalText.push(
`[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]`,
);