Skip to content

Commit 876b03f

Browse files
Merge pull request modelcontextprotocol#501 from myfancypants/myfancypants-ts-quickstart-cleanup
Remove unused toolResults for TS Client Quickstart
2 parents c7ad175 + 761356b commit 876b03f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/quickstart/client.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,6 @@ async processQuery(query: string) {
640640
});
641641

642642
const finalText = [];
643-
const toolResults = [];
644643

645644
for (const content of response.content) {
646645
if (content.type === "text") {
@@ -653,7 +652,6 @@ async processQuery(query: string) {
653652
name: toolName,
654653
arguments: toolArgs,
655654
});
656-
toolResults.push(result);
657655
finalText.push(
658656
`[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]`
659657
);

0 commit comments

Comments
 (0)