Mastra AI
未认领 · 仅索引 · https://github.com/mastra-ai/mastra
A framework for building AI-powered applications and agents with a modern TypeScript stack, offering model routing, agents, workflows, and production essentials.
公开文档能力索引
- Agent development: Build autonomous agents that use LLMs and tools to solve open-ended tasks. Agents reason about goals, decide which tools to use, and iterate internally until the model emits a final answer or an optional stopping condition is met.
- Production essentials: Provide tools for ongoing insight, evaluation, and iteration with built-in evals and observability for observing, measuring, and refining agents continuously.
- Context management: Provide agents with the right context at the right time, including conversation history, data retrieval from sources, and observational memory for coherent behavior.
- MCP servers: Author Model Context Protocol servers, exposing agents, tools, and other structured resources via the MCP interface for access by any system or agent supporting the protocol.
- Model routing: Connect to 40+ providers through one standard interface. Use models from OpenAI, Anthropic, Gemini, and more.
- Workflow orchestration: Use Mastra's graph-based workflow engine to orchestrate complex multi-step processes with intuitive syntax for control flow (`.then()`, `.branch()`, `.parallel()`).
- Human-in-the-loop: Suspend an agent or workflow and await user input or approval before resuming. Mastra uses storage to remember execution state, allowing indefinite pauses and resumption.
- Integrations: Bundle agents and workflows into existing React, Next.js, or Node.js apps, or ship them as standalone endpoints. Integrate with agentic libraries like Vercel's AI SDK UI and CopilotKit.