fix return
This commit is contained in:
parent
7ab4f1d422
commit
7a79473417
1 changed files with 2 additions and 2 deletions
|
|
@ -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}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue