VercelProvider Error get Tools #1994
Unanswered
NataliaGolubeva
asked this question in
providers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use composion with openai, it works perfect. But I would like to switch to versel version.
and when i do
const composio = new Composio({ apiKey: 'MY_API_KEY', provider: new VercelProvider() });
const tools = await composio.tools.get(externalUserId, 'GMAIL_SEND_EMAIL');
const { text } = await generateText({
model: anthropic('claude-3-7-sonnet-20250219'),
messages: [
{
role: 'user',
content: "Send an email to [email protected] saying 'hi from the ether of composio'",
},
],
tools,
maxSteps: 5,
});
i always receive an error Cannot read properties of undefined (reading '_def')
When I log tools, It differs from openai tool version. In versel i can see _def in object type, so for some reason 'generateText' cannot read tool type.
I would appreciate any help how to fix it
Beta Was this translation helpful? Give feedback.
All reactions