Back to prompt library
Setup OpenAI Agents SDK Scheduler Agent
Linked challenge: Continuous Batching & Power-Aware Request Router with OpenAI Agents SDK and Claude 4.1 Opus
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
from openai_agents import Agent, Runner; Define an agent using OpenAI Agents SDK equipped with custom tools to poll NVML power telemetry and adjust continuous batch size bounds.