Agent Orchestration with Mastra

implementationChallenge

Prompt Content

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.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations