Mastra
PaketTypeScript framework for AI agents, workflows, memory and RAG
- Erişim
- LLM provider API key
Hakkında
Mastra is an Apache-2.0 TypeScript framework for agents, graph workflows, memory, RAG and evals, with a model router for 40+ providers. It runs in Node.js, React or Next.js apps; the hosted Mastra platform adds observability and deployment.
Neler yapabilirsin
- Build a TypeScript agent with tools and memory in a Node.js app
- Chain LLM steps into workflows with branching, suspend and resume
- Expose your agents and tools as an MCP server
Başlarken
- Install @mastra/core and zod, or run npm create mastra@latest
- Set your model provider's API key, e.g. OPENAI_API_KEY
Örnek kod
import { Agent } from "@mastra/core/agent";
const agent = new Agent({
id: "assistant",
name: "Assistant",
instructions: "You are a helpful assistant.",
model: "openai/gpt-5.6-sol",
});
const response = await agent.generate("Help me organize my day");
console.log(response.text);Ayrıntılar
- Barındırma
- Hazır hizmet (bulut), Kendi bilgisayarında
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- JavaScript/TypeScript
- MCP sunucusu
- Yok