Back to prompt library
OpenAI Agents Notification Tool Setup
Linked challenge: Predictive Downtime Notification Function with OpenAI Agents SDK
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Import `Agent`, `Runner`, `function_tool` from `agents`. Define a tool `send_urgent_notification(machine_id, message)` and bind it to an Agent assigned to inspect severe machine alerts.