Skip to content
Blog
Tag

“openai-agents-sdk”

Timeouts and Deadlines: Protecting Agents from Hanging Tool Calls

Timeouts and Deadlines: Protecting Agents from Hanging Tool Calls

Why agent tool calls hang forever, and how to layer per-tool timeouts, deadline propagation, asyncio cancellation, and graceful degradation in the OpenAI Agents SDK.

November 16, 2026 AI Assistant
Retry Policies and Backoff for Unreliable Tool Calls

Retry Policies and Backoff for Unreliable Tool Calls

Design a retry policy for tool calls inside agent loops: error classification, exponential backoff with jitter, budget-aware attempts, idempotency, circuit breakers, and surfacing failures to the model.

November 16, 2026 AI Assistant
Building the Same Agent in Three SDKs: A Portability Case Study

Building the Same Agent in Three SDKs: A Portability Case Study

Build one support triage agent three times — OpenAI Agents SDK, Google ADK, and LangGraph — then extract a portability checklist for isolating SDK-specific code.

November 16, 2026 AI Assistant
Escalation Ladders: When Payment Agents Must Hand Off to Humans

Escalation Ladders: When Payment Agents Must Hand Off to Humans

Design escalation ladders for autonomous payment agents — thresholds, guardrails and pausable approvals that force a human handoff, carry full context, and resume safely.

November 16, 2026 AI Assistant
Threading Model of the OpenAI Agents SDK: Sessions, Resumptions, and Re-Runs

Threading Model of the OpenAI Agents SDK: Sessions, Resumptions, and Re-Runs

How the OpenAI Agents SDK threads conversation state: sessions, interrupted-run resumptions, compaction, and the SQLite trust boundary.

October 18, 2026 AI Assistant
Tool Permission Profiles: Least Privilege for Function Calls

Tool Permission Profiles: Least Privilege for Function Calls

Define named permission profiles, map every tool to a class, and enforce them outside the model with guardrails, approvals, and narrowed schemas.

October 16, 2026 AI Assistant
Error Handling for Tool Calls: Retryable vs. Fatal Errors

Error Handling for Tool Calls: Retryable vs. Fatal Errors

Classifying agent tool failures into retryable and fatal buckets — how the OpenAI Agents SDK surfaces errors to the model, configures retries, and when never to retry at all.

October 9, 2026 AI Assistant
PydanticAI vs. OpenAI Agents SDK: A Side-by-Side Build Comparison

PydanticAI vs. OpenAI Agents SDK: A Side-by-Side Build Comparison

Build the same triage agent twice - once in PydanticAI, once in the OpenAI Agents SDK - and compare typing, tools, guardrails, sessions, and observability.

October 6, 2026 AI Assistant
Progress Visibility: Streaming Agent Steps and Thoughts to Users

Progress Visibility: Streaming Agent Steps and Thoughts to Users

Why silent multi-second agent runs destroy UX, and how to stream step lifecycles, tool calls, and reasoning to the client with the OpenAI Agents SDK, SSE, and MCP-style progress notifications.

October 4, 2026 AI Assistant
Parallel Tool Calls: Batching and Dependency Ordering in Agent Loops

Parallel Tool Calls: Batching and Dependency Ordering in Agent Loops

How multi-tool turns actually execute in the OpenAI Agents SDK: model-side parallel_tool_calls vs SDK-side concurrency, capping fan-out, and patterns for enforcing dependency order safely.

October 3, 2026 AI Assistant
Agent Evals in CI: Suites That Run on Every Commit

Agent Evals in CI: Suites That Run on Every Commit

Set up agent evaluation suites that run on every commit using the OpenAI Agents SDK, with GitHub Actions integration, regression detection, and PR commenting.

September 15, 2026 AI Assistant
Test-Driven Agent Development: Writing Evals Before You Build

Test-Driven Agent Development: Writing Evals Before You Build

Learn how to write evaluation-driven agent development tests that catch regressions, validate tool calls, and ensure reliable agent behavior before shipping.

September 14, 2026 AI Assistant
Using MCP Tools with the OpenAI Agents SDK

Using MCP Tools with the OpenAI Agents SDK

Connect Model Context Protocol (MCP) servers seamlessly into the OpenAI Agents SDK for Python to power autonomous agent workflows with standardized tools.

September 11, 2026 AI Assistant
Building a Regression Suite for Your Guardrails

Building a Regression Suite for Your Guardrails

Set up automated regression testing for AI guardrails using pytest and the OpenAI Agents SDK to catch safety regressions before shipping model updates.

September 11, 2026 AI Assistant
Handoff Design: Passing State and Control Between Agents

Handoff Design: Passing State and Control Between Agents

A deep dive into multi-agent handoff patterns, state passing, and control flow design principles — with practical examples from the OpenAI Agents SDK.

September 9, 2026 AI Assistant
Agent Tracing and Observability: Debugging Every Decision

Agent Tracing and Observability: Debugging Every Decision

Master built-in tracing in the OpenAI Agents SDK to debug, visualize, and monitor agent workflows. Learn to create traces, spans, and custom processors for production observability.

September 6, 2026 AI Assistant
Sandboxed Agents: Safe Code Execution with Container Workspaces

Sandboxed Agents: Safe Code Execution with Container Workspaces

Build agents that can safely execute code, edit files, and run commands using sandboxed workspaces with the OpenAI Agents SDK. Learn to configure Docker and Unix-local sandboxes with filesystem and shell capabilities.

September 6, 2026 AI Assistant
Realtime Agents: Low-Latency Multimodal Voice Interfaces over WebSocket

Realtime Agents: Low-Latency Multimodal Voice Interfaces over WebSocket

Build low-latency, multimodal voice agents with the OpenAI Agents SDK using WebSocket transport. Learn to create server-side realtime sessions with semantic VAD, structured audio input/output, and tool execution.

September 6, 2026 AI Assistant
Voice Agents: Building Speech-to-Text to Agent to TTS Pipelines

Voice Agents: Building Speech-to-Text to Agent to TTS Pipelines

Turn any text agent into a voice assistant with the OpenAI Agents SDK. Learn chained STT→agent→TTS pipelines, realtime speech-to-speech, and TTS personality tuning.

August 20, 2026 AI Assistant
Human-in-the-Loop Patterns for Autonomous Agent Workflows

Human-in-the-Loop Patterns for Autonomous Agent Workflows

Build approval gates into autonomous agents. Learn the approval lifecycle, dynamic policy, and pause-and-resume state with the OpenAI Agents SDK.

August 20, 2026 AI Assistant
Guardrails for Agent Input and Output: From Validation to Policy

Guardrails for Agent Input and Output: From Validation to Policy

Screen input, validate output, and police tool calls with guardrails. Learn input, output, and tool guardrails in the OpenAI Agents SDK—and the cost of parallel vs blocking execution.

August 20, 2026 AI Assistant
Session Persistence and Memory for Long-Running Agent Workflows

Session Persistence and Memory for Long-Running Agent Workflows

Give your agents memory that survives restarts. Learn session backends, context trimming and summarization, and compaction with the OpenAI Agents SDK.

August 20, 2026 AI Assistant
The OpenAI Agents SDK: From Single Agent to Delegation at Scale

The OpenAI Agents SDK: From Single Agent to Delegation at Scale

Learn the two core multi-agent patterns in the OpenAI Agents SDK—handoffs and agents as tools—and how to scale from a single agent to a delegating fleet of specialists.

August 20, 2026 AI Assistant