Skip to main content

OpenAI Agents SDK

The OpenAI Agents SDK is a lightweight framework for building multi-agent workflows. It includes an official LiteLLM extension that lets you use any of the 100+ supported providers (Anthropic, Gemini, Mistral, Bedrock, etc.)

from agents import Agent, Runner
from agents.extensions.models.litellm_model import LitellmModel

agent = Agent(
name="Assistant",
instructions="You are a helpful assistant.",
model=LitellmModel(model="provider/model-name")
)

result = Runner.run_sync(agent, "your_prompt_here")
print("Result:", result.final_output)