On this page
Mastra: agent building features and setup
A TypeScript framework for building AI agents, workflows, and applications. It combines development tools, memory, and performance tracking.
Tool by the Otomatzia editorial team · source content checked on
Overview
Mastra suits teams already building in TypeScript that want to add agents as part of their application. It offers components for agents, tools, Workflows, memory, and run logs, alongside quality evaluations. You can define a process made up of predictable steps and use a model only where it adds value. For reliable use, measure tool selection and business outcomes instead of relying on a single example where the agent answered successfully.
Features
- Agents and tools defined in a TypeScript project.
- Workflows and memory for preserving context during a process.
- Run logs, metrics, and quality evaluations using scorers.
Business uses
- An agent integrated into a web app that uses defined internal tools.
- A request processing workflow with quality checks before passing the result along.
Getting started
- Set up a small project and define an agent with one test tool.
- Write several examples of success and failure, then add an appropriate quality metric.
- Check memory, user isolation, and repeat execution before product integration.
What to check
- Conversation memory must be associated with the correct identity and conversation to prevent information from being mixed.
- Automated quality metrics need calibration against human examples, especially when evaluating wording or factual accuracy.
Sources to check next
Vendor features and prices change. Confirm details on the linked official pages before you rely on them.