Merge pull request #30 from jrgtt/main

Remove unused variable `toolResults`
This commit is contained in:
David Soria Parra 2025-09-26 22:04:44 +01:00 • committed by GitHub
commit 6d5cb10fd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)}]`,
);