WhoBuilt

OpenAI + @Temporalio : Building Durable, Production Ready Agents

Jan 12, 2026· 1 h 19 min· 40K views·Watch on YouTube

Speaker

Cornelia Davis, developer advocate at Temporal, explains how Temporal adds durability to OpenAI Agents SDK agents at an AI Engineer event.

Agents SDK and Temporal basics

Davis describes an agent as an application where the LLM decides the flow, including whether to call tools. Temporal is a distributed systems service that records workflow progress and handles retries, so developers can focus on the business logic. Activities wrap external or failure-prone work, while workflows orchestrate those activities.

A durable agentic loop

Davis first builds an agentic loop using direct OpenAI API calls and Temporal activities for LLM requests and tools. A dynamic activity can invoke tools by name, and the tool definitions are kept in a separate module. In a demo, she stops the worker during an LLM call, restarts it, and shows the workflow resume from its recorded history.

OpenAI Agents SDK integration

The integration lets developers expose Temporal activities as agent tools with `activity_as_tool`, which generates the tool description. A Temporal plugin configures durable LLM calls and retry behavior, while the agent runs inside a workflow. Davis demonstrates weather and location tools, then stops and restarts the worker to show the agent continue.

Orchestrating agents and practical limits

Davis describes composing small agents through ordinary code or Agents SDK handoffs, and says both work with the Temporal integration. She estimates activity calls add tens of milliseconds, which she says is generally tolerable for agents that run over longer periods. At the event, native streaming support was still in development; customers had built workarounds, and Davis also identified large-payload storage as a priority.

Takeaways

  • Put agent execution inside a Temporal workflow to preserve progress across worker crashes and avoid repeating completed calls.
  • Wrap external calls and other failure-prone work in activities, and make those activities idempotent because retries can repeat an invocation.
  • Use `activity_as_tool` to expose Temporal activities to an OpenAI Agents SDK agent without hand-building tool JSON.
  • Compose small agents with code or handoffs; workflows can also support parallel work and long waits for human input.
  • Account for the integration’s tens-of-milliseconds activity latency, and plan for extra work if your agent needs streaming.

Mentioned in this talk

Search inside this talk

What was claimed 5

  • previously at
    Cornelia Davis previously at Pivotal
    Vice President of Technology
    “I was fortunate to be at Pivotal, working on Cloud Foundry”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    Temporal: Durable workflow execution with recorded state, retries, and recovery after worker failure
    “You don't have to build in logic for what happens if the LLM is rate-limited, a downstream API is temporarily down, or your application crashes.”
    YouTube
    Unverified1 source· Talk
  • metric
    Temporal: Activity-call latency is tens of milliseconds, depending on server location
    “Tens of milliseconds, so it's pretty small.”
    YouTube
    Unverified1 source· Talk
  • feature
    Temporal OpenAI Agents SDK integration: Activity_as_tool converts Temporal activities into agent tools
    “Call activity_as_tool to generate the JSON blob”
    YouTube
    Unverified1 source· Talk
  • feature
    Temporal OpenAI Agents SDK integration: Durable LLM calls through a Temporal-backed runner implementation
    “We have our own implementation of the abstract runner class.”
    YouTube
    Unverified1 source· Talk

Related talks