Merge pull request #30 from jrgtt/main
Remove unused variable `toolResults`
This commit is contained in:
commit
6d5cb10fd3
1 changed files with 0 additions and 2 deletions
|
|
@ -100,7 +100,6 @@ class MCPClient {
|
||||||
|
|
||||||
// Process response and handle tool calls
|
// Process response and handle tool calls
|
||||||
const finalText = [];
|
const finalText = [];
|
||||||
const toolResults = [];
|
|
||||||
|
|
||||||
for (const content of response.content) {
|
for (const content of response.content) {
|
||||||
if (content.type === "text") {
|
if (content.type === "text") {
|
||||||
|
|
@ -114,7 +113,6 @@ class MCPClient {
|
||||||
name: toolName,
|
name: toolName,
|
||||||
arguments: toolArgs,
|
arguments: toolArgs,
|
||||||
});
|
});
|
||||||
toolResults.push(result);
|
|
||||||
finalText.push(
|
finalText.push(
|
||||||
`[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]`,
|
`[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]`,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue