Back to prompt library
Mastra AI Workflow Initialization
Linked challenge: Software-Defined SCADA Anomaly Detection with Mastra AI and Gemini 2.5 Flash
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Write a TypeScript module that initializes a Mastra AI agent configured with Gemini 2.5 Flash as its core reasoning model. Define custom tools for querying SCADA tag definitions (`getScadaTagMeta`) and issuing vPLC control commands (`issuePlcOverride`). Set up the Mastra workflow structure to process incoming telemetry frames.