diff --git a/js/src/frameworks/vercel.spec.ts b/js/src/frameworks/vercel.spec.ts index 93632ccecd5..eddc81ac723 100644 --- a/js/src/frameworks/vercel.spec.ts +++ b/js/src/frameworks/vercel.spec.ts @@ -18,15 +18,15 @@ describe("Apps class tests", () => { }); it("check if tools are coming", async () => { - const tools = await vercelAIToolSet.getTools({ + const tools = await vercelAIToolSet.get_tools({ apps: ['github'] }); - expect(tools).toBeInstanceOf(Array); + expect(Object.keys(tools)).toBeInstanceOf(Array); }); - it("check if tools are coming", async () => { + it("check if actions are coming", async () => { const tools = await vercelAIToolSet.get_actions({ actions: ['GITHUB_GITHUB_API_ROOT'] }); diff --git a/js/src/frameworks/vercel.ts b/js/src/frameworks/vercel.ts index dacfb7c4bfe..cb7df2f83c5 100644 --- a/js/src/frameworks/vercel.ts +++ b/js/src/frameworks/vercel.ts @@ -45,10 +45,11 @@ export class VercelAIToolSet extends BaseComposioToolSet { return tools; } + // change this implementation async get_tools(filters: { - apps: Sequence; - tags: Optional>; - useCase: Optional; + apps: Array; + tags?: Optional>; + useCase?: Optional; }): Promise<{ [key: string]: any }> { const actionsList = await this.client.actions.list({ apps: filters.apps.join(","),