The alpha, twice a week
That was 4 min.
Get the best new moments in your inbox every Wednesday and Saturday. It's free.
Check your inbox
We sent a link to your address. Click it to finish signing up. Not there in a minute? Look in spam.
or
Latent Space · 4 min · Mar 11, 2025
The Agents SDK adds guardrails, tracing, and provider flexibility
The guests outline SDK features including guardrails, tracing, and agent handoffs, while allowing developers to use compatible APIs and tracing providers.
The episode’s best minutes
Full analysis- 2:18Responses API unifies agent workflows without replacing Chat Completions5 min
- 8:17Web search combines retrieval with factual answers and citationsPro pick 6 min
- 21:19The Agents SDK adds guardrails, tracing, and provider flexibility4 min
- 2 more moments in the full episode
“We also made this pretty flexible. So you can pick any API from any provider that supports the Chat Completions API format.”
Nikunj Handaat 22:10 · Latent SpaceTakeaways
- Guardrails can block execution while generation proceeds.
- Tracing helps inspect handoffs and tool calls.
- The SDK supports compatible providers beyond OpenAI.
About this segment
The guests outline SDK features including guardrails, tracing, and agent handoffs, while allowing developers to use compatible APIs and tracing providers. They also describe connecting traces to evals and reinforcement fine-tuning.
Head of Product, API, OpenAI
Leads product for OpenAI's API, including the Decisions API that cut response times to 100–180 milliseconds.

Shawn Wang (swyx), Host · Co-founder, AI Engineer
Wrote “The Rise of the AI Engineer” and founded Smol AI, maker of AI News.

Alessio Fanelli, Host · Founder, Kernel Labs
Partner at Decibel, backing technical founders who build developer tools.
From “The new OpenAI Agents Platform: CUA, Web Search, Responses API, Agents SDK!!”, Mar 11, 2025. Watch the full episode
Thanks. We'll look at and fix what's off.
Transcript
Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.
- 21:31
like Optimize for Search and Computer Use. Agents SDK, we have a few minutes left. So let's just assume that everyone has looked at Swarm. Sure. I think that Swarm has really popularized the handoff technique, which I thought was really interesting for sort of a multi-agent world. What is new with the SDK? Yeah, for sure. So we've basically added support for types. We've made this a lot. We've added support for types.
- 22:01
We've added support for guard railing, which is a very common pattern. So in the guardrail example, you basically have two things happen in parallel. The guardrail can sort of block the execution. It's a type of optimistic generation that happens. And I think we've added support for tracing. So you can basically look at the traces that the Agents SDK creates in the OpenAI dashboard. We also made this pretty flexible.
- 22:25
So you can pick any API from any provider that supports the Chat Completions API format. So it supports responses by default, but you can easily plug it into anyone that uses the Chat Completions API. And similarly, on the tracing side, you can support multiple tracing providers. By default, it points to the OpenAI dashboard. but there's so many tracing companies out there and we'll announce some partnerships on that front too.
- 22:51
So just adding lots of core features and making it more usable but still centered around handoffs is the main concept. And by the way, it's interesting because Swarm just came to life out of learning from customers directly that orchestrating agents in production was pretty hard. Simple ideas could quickly turn very complex. What are those guardrails? What are those handoffs? etc. So that came out of learning from customers and was initially shipped as a low-key experiment, I'd say. But we were kind of taken by surprise at how much momentum there was around this concept.
- 23:25
And so we decided to learn from that and embrace it. To be like, okay, maybe we should just embrace that as a core primitive of the OpenAI platform. And that's kind of what led to the agency SDK. And I think now, as Nikuj mentioned, it's like adding all of these new capabilities to it, like leveraging the handoffs that we had, but tracing also. And I think what's very compelling for developers is like instead of having one agent to rule them all and you stuff like a lot of tool calls in there that can be hard to monitor.
- 23:52
Now you have the tools you need to kind of like separate the logic, right? And you can have a triage agent that based on an intent goes to different kind of agents. And then on the OpenAI dashboard, we're releasing a lot of new user interface logs as well. So you can see all of the tracing UIs. essentially you'll be able to troubleshoot what exactly happened in that workflow when the triage agent did a handoff to a secondary agent and the third and see the tool calls, et cetera.
- 24:20
So we think that the agent's SDK combined with the tracing UIs will definitely help users and developers build better agentic workflows. And just before we wrap, are you thinking of connecting this with also the RFT API? Because I know you already have, you kind of store my text completions and then I can do fine tuning of that. Is that going to be similar for agents where you're storing kind of like my traces and then help me improve the agents?
- 24:43
Yeah, absolutely. Like you got to tie the traces to the evals product so that you can generate good evals. Once you have good evals and graders and tasks, you can use that to do reinforcement fine tuning. And, you know, lots of details to be figured out over here. But that's the vision.