Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

691 B
Raw Blame

OpenAI Agents Test Fixtures Generator

Dead simple script to grab test fixtures from OpenAI Agents API.

Usage

# Activate venv
source .venv/bin/activate

# Run it
python -m tests.unit.instrumentation.openai_agents_tools.generate_fixtures

What it does

  • Makes API calls to OpenAI Agents endpoint:
    • Standard agent response
    • Agent response with tool calls
  • Saves the JSON responses to ../fixtures/
  • That's it!

Generated Fixtures

  • openai_agents_response.json - Standard Agents API response
  • openai_agents_tool_response.json - Agents API with tool calls

Requirements

  • OpenAI API key in env or .env file
  • openai + openai-agents packages installed