Back to prompt library
Initialize Mastra AI Agent
Linked challenge: Build a Supply-Price Momentum Agent
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Initialize a Mastra AI agent in TypeScript. Define three tools: 'fetchPermitData' (querying Census BPS), 'fetchPriceIndex' (querying FHFA), and 'calculateDivergence'. Use the `Mastra` class to register these tools and define a basic workflow that sequences them. Show the imports from '@mastra/core'.