- TypeScript-आधारित AI applications और features को तेज़ी से बनाने के लिए एक opinionated framework
- workflow, agent, RAG, integration, evals आदि जैसे AI development के लिए ज़रूरी प्रमुख features प्रदान करता है
- local environment या serverless cloud में चलाया जा सकता है
मुख्य विशेषताएँ
- LLM Models : Vercel AI SDK का उपयोग करके OpenAI, Anthropic, Google Gemini जैसे विभिन्न LLM providers को एक unified interface के साथ सपोर्ट करता है। model selection और streaming का उपयोग करना है या नहीं, इसे स्वतंत्र रूप से तय किया जा सकता है
- Agents : Agents एक ऐसा system हैं जो language model को खुद action sequence तय करने में मदद करता है। tools, workflows और synchronized data उपलब्ध कराता है ताकि ज़रूरत पड़ने पर functions call किए जा सकें या knowledge base का उपयोग किया जा सके
- Tools : Tools वे TypeScript functions हैं जिन्हें agent या workflow execute कर सकते हैं। हर tool में parameter schema, logic को implement करने वाला executor function, और integrated services तक access permissions होती हैं
- Workflows : Workflows graph-based long-running state machines हैं। इनमें loop, branching, human input का इंतज़ार, दूसरे workflows को शामिल करना, error handling, retry, parsing आदि किया जा सकता है। हर step पर OpenTelemetry tracing लागू होती है
- RAG(Retrieval-Augmented Generation) : RAG agents के लिए knowledge base बनाने में मदद करता है। ETL pipeline के ज़रिए chunk splitting, embedding, vector search आदि के माध्यम से context प्रदान करता है
- Integrations : Mastra में Integration एक auto-generated type-safe API client है, जिससे third-party services को tool या workflow step के रूप में इस्तेमाल किया जा सकता है
- Evals : LLM results का model-based, rule-based, और statistical तरीकों से automatic evaluation करता है। 0~1 के बीच normalized score लौटाता है, जिसे performance comparison और logging में उपयोग किया जा सकता है
1 टिप्पणियां
Hacker News राय
उदाहरण कोड इतना दिलचस्प नहीं है
Mastra को लेकर काफ़ी उत्साहित हूँ
बढ़िया लग रहा है! एक छोटा सा सवाल, क्या SSE MCP server support करने की योजना है?
Mastra user के रूप में मैं संतुष्ट हूँ
मैं agents को ठीक से नहीं समझता
बधाई हो! एक अलग सवाल - क्या website भी OS है?
Gatsby डेवलपर्स ने बनाया है, यह plus नहीं बल्कि minus है
ऐसे सैकड़ों मिलते-जुलते framework हैं जो कमोबेश वही काम कर रहे हैं
लॉन्च के लिए बधाई
मैंने Mastra framework इस्तेमाल किया है और documentation के ज़रिए agents कैसे काम करते हैं, यह सब सीखा