Skip to main content
Loading navigation
Back to prompt library

Agent Orchestration with Mastra

Linked challenge: Build a Mineral Supply Chain Risk Agent

Prompt source

implementation1 lines1 sectionsNo variables0 checklist items
Initialize a Mastra AI agent in TypeScript. Define a 'RiskAssessmentAgent' that uses a 'CopperPriceTool' and a 'GeopoliticalNewsTool'. Ensure you use @mastra/core for agent definition and set up a workflow that triggers a risk score update when news from 'Mining.com' indicates a policy change.