Overview
This workshop demonstrates how to build durable AI agents that survive crashes and failures by combining OpenAI’s Agents SDK with Temporal’s distributed systems platform. The session covers building agentic loops that can restart from where they left off without losing progress or re-burning tokens.
Key Takeaways
- Build agents that survive failures - Traditional agent frameworks lose all progress when processes crash, but combining Temporal with agent frameworks creates durable agents that automatically resume from where they left off
- Program the happy path, get durability for free - Temporal handles retries, state management, and failure recovery automatically, letting developers focus on business logic instead of distributed systems complexity
- Event sourcing eliminates token waste - When agents crash on the 1,350th turn, Temporal’s event sourcing means you won’t re-burn those expensive LLM tokens when the agent restarts
- Microagents enable better architecture - Small, focused agents that do one thing well can be orchestrated together, similar to how microservices revolutionized software architecture
- Logical processes vs physical processes - With Temporal, developers can think about processes as logical entities rather than worrying about physical process management, making human-in-the-loop scenarios much simpler
Topics Covered
- 0:00 - Introduction and Audience Poll: Speaker introduces herself and polls audience on OpenAI Agents SDK and Temporal usage
- 4:30 - OpenAI Agents SDK Overview: Basic introduction to the Agents SDK, defining agents as giving LLMs agency to decide application flow
- 7:30 - Temporal Introduction: Overview of Temporal as distributed systems backing service, explaining durability and fault tolerance
- 12:30 - Temporal Activities and Workflows: Core abstractions of Temporal: activities (chunks of work) and workflows (orchestrations)
- 20:00 - First Demo - Temporal Agentic Loop: Live coding demo of building an agentic loop with Temporal activities for LLM calls and tool invocation
- 40:00 - Crash Recovery Demo: Demonstration of killing the process mid-execution and showing how it resumes without losing state
- 45:00 - OpenAI + Temporal Integration: Overview of the official integration between OpenAI Agents SDK and Temporal
- 49:00 - Second Demo - Agents SDK with Temporal: Live demo showing simplified code using the integrated Agents SDK with durability features
- 57:00 - Process Abstraction Concepts: Explanation of logical vs physical processes and human-in-the-loop scenarios
- 1:00:00 - Agent Orchestration Patterns: Discussion of microagents, handoffs, and orchestration patterns in the Agents SDK
- 1:06:00 - Resources and Q&A: Links to repositories, documentation, and open Q&A session with audience