-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[DO not merge]Docs: Mastra agent provider[draft] #2199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
|
Claude finished @Sushmithamallesh's task —— View job Documentation Review Complete ✅I've reviewed the Mastra provider documentation changes against the requested criteria. Here's my comprehensive feedback: Todo List:
Review Feedback✅ Strengths
|
| tools: tools, | ||
| }); | ||
|
|
||
| const { text } = await agent.generateVNext([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Deprecated Mastra API method used
The code uses agent.generateVNext() which was deprecated in Mastra v0.20.00 and renamed to generate(). Other Mastra examples in the codebase use agent.generate() with a string parameter instead of an array. This will cause runtime errors if users have Mastra v0.20.00 or later installed.
|
Claude finished @Sushmithamallesh's task —— View job Documentation Review Complete ✅I've reviewed the Mastra provider documentation changes against the requested criteria. Here's my comprehensive feedback: Todo List:
Review Feedback✅ Strengths
|
| const agent = new Agent({ | ||
| name: "Email Agent", | ||
| instructions: "You are an email agent. You are responsible for sending emails to the users.", | ||
| model: openai("gpt-5"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I'll analyze this and get back to you. |
| }); | ||
|
|
||
| const { text } = await agent.generateVNext([ | ||
| { role: "user", content: "Send an email to [email protected] with the subject 'Hello from composio 👋🏻' and the body 'Congratulations on sending your first email using AI Agents and Composio!'" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Internal email address exposed in documentation example
The code example contains what appears to be an internal employee email address [email protected]. Documentation examples typically use placeholder addresses like [email protected] to avoid exposing internal contact information and to provide a clearer example pattern for users.

Note
Reworks Mastra provider docs to use an external TypeScript snippet and removes inline setup/usage content.
fern/pages/src/providers/mastra.mdxby removing inline install/setup and usage code; reference an external snippet viaSnippetCode.fern/snippets/providers/typescript/mastra.tsdemonstrating:ComposiowithMastraProviderand retrievingGMAIL_SEND_EMAILtool.Agentwith OpenAI model and invokinggenerateVNextto send an email.Written by Cursor Bugbot for commit b6cddc6. This will update automatically on new commits. Configure here.