MastraAI
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
JoinMastraAI
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
JoinPassing Parameters to Agent API
Support for GoogleVertex AI
Workflow Snapshots

Conversation history without user messages

Duplicate Assistant Messages with agent.network() + Memory
agent.network()
with memory enabled. For each network interaction, TWO assistant messages are saved:
1. ✅ The correct user-friendly response...agent.network() Usage Tracking Not Working
0.0.0-ai-sdk-network-text-delta-20251017172601
(snapshot for network streaming fix)
- Provider: @openrouter/ai-sdk-provider
(direct, not through Mastra gateway)
- Models: OpenRouter with GPT-4o-mini, Grok, etc.
- Use case: Credit-based billing system - need accurate token usage for each network call...Should I host my own postgresql pgvector with mastra cloud
How to use GPT-5 mini with tools? Getting "required reasoning item" errors with Memory
Multi-Index Strategy for Mastra semanticRecall?
semanticRecall
implementation and from the createEmbeddingIndex
logic it appears that, per embedding dimension, a single shared vector index is used.
In a multi-tenant SaaS scenario or as data volume grows, the following needs typically emerge:
- Separating indexes by tenant or even by thread...Advice needed for Mastra AI "backend" and Convex on frontend
having problem with Configure your Mastra instance to include CopilotKit’s runtime endpoint
Can't use OpenAI WebSearch tool
Why the memory property in Agent is unable to get the context from runtime?

Getting internal server error in Mastra cloud instance. No error logs.
Cloud
tag. Is this the right spot?get workflow status on frontend
Human in the Loop Workflows
Agents/Workflows not appearing in Mastra Cloud
Get threadId associated with agent memory
Images are not kept in the thread context