Mastra is an opinionated Typescript framework that helps you build AI applications and features quickly. It provides workflows, agents, RAG, integrations, and evals. Mastra uses the Vercel AI SDK for model routing, offering a unified interface to interact with various LLM providers. Agents in Mastra enable language model actions and access to tools, workflows, and data. Tools are typed functions that can be executed by agents or workflows with built-in integration access. Workflows are durable graph-based state machines with various functionalities. RAG helps construct a knowledge base for agents through a specific querying pipeline. Integrations in Mastra are auto-generated type-safe API clients for third-party services. Evals are automated tests that evaluate LLM outputs using different methods and return normalized scores for comparison. Mastra offers a comprehensive set of features for AI application development.