# The Agents SDK adds guardrails, tracing, and provider flexibility

Markdown copy of https://realalpha.app/s/the-agents-sdk-adds-guardrails-tracing-and-provider/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Nikunj Handa](https://realalpha.app/builders/nikunj-handa/) · Head of Product, API, OpenAI · Leads product for OpenAI's API, including the Decisions API that cut response times to 100–180 milliseconds.
- Host: [Shawn Wang (swyx)](https://realalpha.app/people/swyx/) · Co-founder, AI Engineer · Wrote “The Rise of the AI Engineer” and founded Smol AI, maker of AI News.
- Host: [Alessio Fanelli](https://realalpha.app/people/alessio-fanelli/) · Founder, Kernel Labs · Partner at Decibel, backing technical founders who build developer tools.
- Show: Latent Space
- Episode: [The new OpenAI Agents Platform: CUA, Web Search, Responses API, Agents SDK!!](https://realalpha.app/v/QU9QLi1-VvU/), Mar 11, 2025
- Moment: 21:19 to 25:08 of the episode (4 min), playing on https://realalpha.app/s/the-agents-sdk-adds-guardrails-tracing-and-provider/; the episode from there: https://realalpha.app/v/QU9QLi1-VvU/?t=1279

## Quote

> “We also made this pretty flexible. So you can pick **any API from any provider** that supports the Chat Completions API format.”
> — [Nikunj Handa](https://realalpha.app/builders/nikunj-handa/) at [22:10](https://realalpha.app/v/QU9QLi1-VvU/?t=1330) · Latent Space

## Takeaways

1. Guardrails can block execution while generation proceeds.
2. Tracing helps inspect handoffs and tool calls.
3. 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.

From “The new OpenAI Agents Platform: CUA, Web Search, Responses API, Agents SDK!!”, Mar 11, 2025. [Watch the full episode](https://realalpha.app/v/QU9QLi1-VvU/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[21:31](https://realalpha.app/v/QU9QLi1-VvU/?t=1291) 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](https://realalpha.app/v/QU9QLi1-VvU/?t=1321) 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](https://realalpha.app/v/QU9QLi1-VvU/?t=1345) 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](https://realalpha.app/v/QU9QLi1-VvU/?t=1371) 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](https://realalpha.app/v/QU9QLi1-VvU/?t=1405) 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](https://realalpha.app/v/QU9QLi1-VvU/?t=1432) 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](https://realalpha.app/v/QU9QLi1-VvU/?t=1460) 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](https://realalpha.app/v/QU9QLi1-VvU/?t=1483) 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.
