Back to prompt library
OpenAI Agents SDK Setup
Linked challenge: KV-Cache Capacity Planner and Admission Controller with OpenAI Agents SDK and Claude 4 Sonnet
Prompt source
implementation1 lines1 sectionsNo variables0 checklist items
Import `from agents import Agent, Runner` and create an agent tool `calculate_kv_cache_bytes` that uses precision, hidden size, layers, and context length to compute VRAM required.