From 7a79473417531c676aedb1e23ca3496b5dd3da67 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 17 Mar 2025 15:37:05 -0700 Subject: [PATCH] fix return --- core/tools/callTool.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tools/callTool.ts b/core/tools/callTool.ts index 5c1b0a1e7..8d4b1f1b3 100644 --- a/core/tools/callTool.ts +++ b/core/tools/callTool.ts @@ -87,7 +87,7 @@ async function callToolFromUri( } const contextItems: ContextItem[] = []; - return (response.content as any).forEach((item: any) => { + (response.content as any).forEach((item: any) => { if (item.type === "text") { contextItems.push({ name: extras.tool.displayTitle, @@ -123,7 +123,7 @@ async function callToolFromUri( }); } }); - + return contextItems; default: throw new Error(`Unsupported protocol: ${parsedUri?.protocol}`); }