Skip to main content
Loading navigation

Prompt source

implementation11 lines3 sectionsNo variables0 checklist items
import { Workflow, Step } from '@mastra/core';

const calculateHeatIndexStep = new Step({
  id: 'calc-heat-index',
  execute: async ({ context }) => {
    // Implement WBGT formula and trigger threshold logic
  }
});

export const heatRiskWorkflow = new Workflow({
  name: 'heat-risk-monitor',
  steps: [calculateHeatIndexStep]
});