Skip to content
⚡️The new OpenAI Agents Platform episode artwork

Mar 11, 2025 25 min

⚡️The new OpenAI Agents Platform

from Latent Space: The AI Engineer Podcast Hosted by Latent.Space

While everyone is now repeating that 2025 is the “Year of the Agent”, OpenAI is heads down building towards it. In the first 2 months of the year they released Operator and Deep Research (arguably the most successful agent archetype so far), and today ...

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

⚡️The new OpenAI Agents Platform

0:00 25:38
of matches

Transcript Auto-generated, may contain errors

Hey everyone, welcome back to another Latent Space Lightning episode. This is Alessio, partner and CTO at Decibel, and I'm joined by Swix, founder Osmalayai. Hi, and today we have a super special episode because we're talking with our old friend Roman. Hi, welcome. Thank you, thank you for having me. And Nikunj, who is most famously, if anyone has ever tried to get access to anything on the API, Nikunj is the guy. So I know your emails because I look forward to them. Yeah, nice to meet all of you. I think that we're basically convening today to talk about the new API. So perhaps you guys want to just kick off, what is OpenAI launching today?

Yeah, so I can kick it off. We are launching a bunch of new things today. We're going to do three new built-in tools. So we're launching a web search tool. This is basically ChatGPT for search, but available in the API. We're launching an improved file search tool. So this is you bringing your data to OpenAI. You upload it. We take care of parsing it, chunking it, embedding it, making it searchable, give you this ready vector store that you can use. So that's the file search tool. And we're also launching our computer use tool. So this is the tool behind the operator product in ChatGPT. So that's coming to developers today.

And to support all of these tools, we're going to have a new API. So, you know, we launched chat completions, like I think March 2023 or so. It's been a while. So we're looking for an update over here to support all the new things that the models can do. And so we're launching this new API called the Responses API. It is, you know...

It works with tools. We think it'll be like a great option for all the future agentic products that we build. And so that is also launching today. Actually, the last thing we're launching is the agent's SDK. We launched this thing called Swarm last year where it was an experimental SDK for people to do multi-agent orchestration and stuff like that. It was supposed to be like educational, experimental, but like people really loved it. They like ate it up. And so we were like, all right, let's upgrade this thing. Let's give it a new name. And so we're calling it the agent's SDK. It's going to have built-in tracing in the OpenAI dashboard. So lots of cool stuff going out. So yeah. That's a lot, but we said 2025 was a year of agents. So there you have it, like a lot of new tools.

to build these agents for developers. OK, I guess we'll just kind of go one by one and we'll leave the Agents SDK towards the end. So Responses API, I think the sort of primary concern that people have and something I think I voiced to you guys when I was talking with you in the planning process was, is chat completions going away? So I just wanted to let you guys respond to the concerns that people might have. Chat completion is definitely here to stay. It's a bare metal API we've had for quite some time. Lots of tools built around it. So we want to make sure that it's maintained and people can confidently keep on building on it. At the same time, it was optimized for a different world. It was optimized for a pre-multi-modality world. It was optimized for a single turn, text prompt in, text response out. And now with these agentic workflows, we notice that developers and companies want to build.

longer horizon tasks, you know, like things that require multiple turns to get the task accomplished. And computer use is one of those, for instance. And so that's why the Responsys API came to life, to kind of support these new agentic workflows. But chat completion is definitely here to stay. In Assistance API, we have the target sunset date of first half of 2026. So this is kind of like, in my mind, that was kind of very poetic mirroring of the API with the models. I kind of view this as like kind of the merging of Assistance API and chat completions, right, into one unified responses. So it's kind of like how GPT and the old series models are also unifying.

Yeah, that's exactly the right framing, right? I think we took the best of what we learned from the Assistance API, especially being able to access tools very conveniently. But at the same time, simplifying the way you have to integrate. You no longer have to think about six different objects to get access to these tools. With the Responsive API, you just get one API request, and suddenly you can sweep in those tools, right? Yeah, absolutely. And I think we're going to make it really easy and straightforward for Assistant API users to migrate over to Responsive API without any loss of functionality or data. So our plan is absolutely to add Assistant-like objects and Threadlight objects that work really well with the Responsive API. We'll also add the Code Interpreter tool, which is not launching today. It will come soon. And we'll add Async mode to Responsive API, because that's another difference with Assistant.

have webhooks and stuff like that. But I think it's going to be like a pretty smooth transition once we have all that in place and we'll give folks like a full year to migrate and help them through any issues they face. So overall, I feel like instance users are really going to benefit from this longer term with this more flexible primitive. How should people think about when to use each type of API? So I know that in the past, the assistance was maybe more stateful, kind of like long running, many tool use, kind of like file-based things. And the chat completions is more stateless, you know, kind of like traditional completion API. Is that still the mental model that people should have? Or like, should you by default always try and use the responses API?

So the Responses API is going to support everything that, at launch, going to support everything that chat completion supports. And then over time, it's going to support everything that Assistant supports. So it's going to be a pretty good fit for anyone starting out with OpenAI. They should be able to go to Responses. Responses, by the way, also has a stateless mode. So you can pass in store false, and that'll make the whole API stateless, just like chat completions. We're really trying to get this unification story in so people don't have to juggle multiple endpoints. That being said, chat completions are just our most widely adopted API. It's so popular, so we're still going to support it for years with new models and features. But if you're a new user, or if you want existing...

and you want to tap into some of these like built-in tools or something, you should feel totally fine migrating to responses and you'll have more capabilities and performance than chat completions. I think that the messaging that I agree that I think resonated the most when I talked to you was that it is a strict superset, right? Like you should be able to do everything that you could do in chat completions and in persistence. And the thing that I just assumed that because you're now, you know, by default is stateful, you're actually storing the chat logs or the chat state. I thought you'd be charging me for it. So, you know, to me, it was very surprising that you figured out how to make it free.

Yeah, it's free. We store your state for 30 days. You can turn it off. But yeah, it's free. Interesting thing on state is that it just makes, particularly for me, it makes debugging things and building things so much simpler where I can create a responses object that's pretty complicated and part of this more complex application that I've built. I can just go into my dashboard and see exactly what happened. Did I mess up my prompt? Did it not call one of these tools? Did I misconfigure one of the tools? And the visual observability of everything that you're doing is so, so helpful. So I'm excited about people trying that out and getting benefits from it too.

Yeah, it's really, I think, really nice to have. But all I'll say is that my friend, Corey Quinn, says that anything that can be used as a database will be used as a database. So be prepared for some abuse. All right. Yeah, that's a good one. With some of that, let's try it with the metadata. Some people are very, very creative at stuff. We do have metadata with responses. Exactly. Let's get through all of these. So web search. I think when I first said web search, I thought you were going to just expose an API to then return kind of like a nice list of things.

the way its name is like gpt4o search preview so i'm guessing you have you're using basically the same model that is in the chat gpt search which is fine-tuned for search i'm guessing it's a different model than the base one and it's impressive the jump in performance so just to give an example on simple qa gpt4o is 38 accuracy for o search is 90 but we always talk about how tools are like models is not everything you need like tools around it are just as important so yeah maybe give people a quick review on like the work that went into making this special So firstly, we're launching Web Search in two ways. One, in Responses API, which is our API for tools, it's going to be available as a Web Search tool itself. So you'll be able to go, tools, turn on Web Search, and you're ready to go. We still wanted to give chat completions people access to real-time information. So in that chat completions API, which does not support built-in tools, we're launching the direct access to the fine-tuned model that ChatGPT for Search uses, and we call it GPT-40 Search Preview. And how is this model built? Basically, we have our search research team has been working on this for a while. Their main goal is to get information, get a bunch of information from all of our...

our data sources that we use to gather information for search and then pick the right things and then cite them as accurately as possible. And that's what the search team has really focused on. They've done some pretty cool stuff. They use synthetic data techniques. They've done O-series model distillation to make these four or fine tunes really good. But yeah, the main thing is, can it remain factual? Can it answer questions based on what it retrieves? And can it cite it accurately? And that's what this fine-tune model really excels at. And so yeah, I'm super excited that it's going to be directly available in chat completions along with being available as a tool. Yeah, just to clarify, if I'm using the responses API, this is a tool.

But if I'm using chat completions, I have to switch model. I cannot use 01 and call search as a tool. That's right. Exactly. I think what's really compelling, at least for me and my own uses of it so far, is that when you use Web Search as a tool, it combines nicely with every other tool and every other feature of the platform. So think about this for a second for instance. Imagine you have a responses API call with the Web Search tool, but suddenly you turn on function calling and also turn on, let's say, structured outputs. Now you kind of have the ability to structure any data from the web in real time in the JSON schema that you need for your application. So it's quite powerful when you start combining those features and tools together.

It's kind of like an API for the internet almost, you know, like you get like access to the precise schema you need for your app. Yeah. And then just to wrap up on the infrastructure side of it, I read on the post that people, publisher can choose to appear in the web search. So are people by default in it? Like how can we get latent space in the web search API? Yeah. Yeah. I think we have some documentation around how websites publishers can control like what shows up in a web search tool. And I think you should be able to like read that. I think we should be able to get latent space in for sure.

Yeah, you know, I think so. I compare this to a broader trend that I started covering last year of online LLMs. Actually, Perplexity, I think, was the first to offer an API that is connected to search. And then Gemini had the sort of search grounding API. And I think you guys, I actually didn't, I missed this in the original reading of the docs, but you even give like citations with like the exact subparagraph that is matching, which I think is the standard nowadays. I think my question is, how do we take what a knowledge cutoff is for something like this, right? Because now basically there's no knowledge cutoff, it's always live. But then there's a difference between what the model has sort of internalized in its backpropagation and what is searching up as RAG.

I think it kind of depends on the use case, right, and what you want to showcase as the source. Like, for instance, you take a company like Hebea that has used this, like, web search tool. They can combine, like, for credit firms or law firm, they can find, like, you know, public information from the internet with the live sources and citations that sometimes you do want to have access to as opposed to, like, the internal knowledge. But if you're building something different where, like, you just want to have an assistant that relies on the deep knowledge that the model has, you may not need to have these, like, direct citations. I think it kind of depends on the use case a little bit. But there are many companies like Hebea that will need that access to these citations to precisely know where the information comes from.

Yeah, yeah, for sure. And then one thing on the breadth, you know, I think a lot of the deep research, open deep research implementations have this sort of hyperparameter about how deep they're searching and how wide they're searching. I don't see that in the docs, but is that something that we can tune? Is that something you recommend thinking about? Super interesting. It's definitely not a parameter today, but we should explore that. It's very interesting. Imagine how you would do it with the Web Search Tool and Responses API is you would have some form of agent orchestration over here where you have a planning step and then each Web Search call that you do explicitly goes a layer deeper and deeper and deeper. But it's not a parameter that's available out of the box. But it's a cool thing to think about. The only guidance I'll offer there is...

A lot of these implementations offer top K, which is like, you know, top 10, top 20, but actually don't really want that. You want like sort of some kind of similarity cutoff, right? Like some matching score cutoff. Because if there's only five things, five documents that match, fine. If there's 500 that match, maybe that's what I want. Right. But also that might make my costs very unpredictable because the costs are something like $30 per thousand queries, right? So yeah. Yeah, I guess you could have some form of like a context budget and then you're like, go as deep as you can and pick the best stuff and put it into like X number of tokens. There could be some creative ways of managing cost. But yeah, that's a super interesting thing to explore.

Do you see people using the files in the search API together where you can kind of search and then store everything in the file so the next time I'm not paying for the search again and like, yeah, how should people balance that? That's actually a very interesting question. Let me first tell you about how I've seen a really cool way I've seen people use files in search together is they put their user preferences or memories in the vector store. And so a query comes in, you use the file search tool to like get someone's like reading preferences or like fashion preferences and stuff like that. And then you search the web for information or products that they can buy related to those preferences and you then render something.

beautiful to show them, like, here are five things that you might be interested in. So that's how I've seen, like, file search, web search work together. And by the way, that's, like, a single responsive API call, which is really cool. So you just, like, configure these things, go, boom, and, like, everything just happens. But, yeah, that's how I've seen, like, files and web work together. But I think that what you're pointing out is, like, interesting. And I'm sure developers will surprise us, as they always do, in terms of how they combine these tools and how they might use file search as a way to have memory and preferences, like Nikub says. But I think, like, zooming out, what I find very compelling and powerful here is, like, when you have these, like, neural nets that have, like, all of the knowledge that they have today, plus real-time access to the internet.

for like any kind of real-time information that you might need for your app and file search where you can have a lot of company private documents private details you combine those three and you have like very very compelling and precise answers for any kind of use case that your company or your product might want to enable it's a difference between sort of internal documents versus the open web right like you're going to need both exactly exactly i never thought about it doing memory as well i guess again you know anything that's a database you can store it and you will use it as a database that sounds awesome but i think also you've been you know uh expanding the file search you have more file types you have query optimization custom re-ranking so it really seems like you know it's been fleshed out obviously i haven't been paying a ton of attention to the file search capability, but it sounds like your team has added a lot of features. Yeah, metadata filtering was the main thing people were asking us for for a while, and that's the one I'm super excited about. I mean, it's just so critical once your vector size goes over more than like...

you know five ten thousand records you you kind of need that so yeah metadata filtering is coming too and for most companies it's also not like a competency that you want to rebuild in-house necessarily you know like you know thinking about embeddings and chunking and you know how all of that like it sounds like very complex with something very uh like uh obvious to ship for your users like companies like navan for instance they were able to build with the file search like you know take all of the faq and travel policies for instance that you have you you put that in file search tool and then you don't have to think about anything now your assistant becomes naturally much more aware of all of these policies from the files The question is, there's a very, very vibrant RAG industry already, as you well know. So there's many other vector databases, many other frameworks. Probably if it's an open source stack, I'll say a lot of AI engineers I talk to want to own this part of the stack. And it feels like, when should we DIY and when should we just use whatever OpenAI offers?

Yeah. I mean, if you're doing something completely from scratch, you can have more control, right? Like, so super supportive of, you know, people trying to like roll up their sleeves, build their like super custom junking strategy and super custom retrieval strategy and all of that. And those are things that like will be harder to do with OpenAI's tools. OpenAI's tool has like, we have an out-of-the-box solution. We give you some knobs to customize things, but it's more of like a managed rack service. So my recommendation would be like, start with OpenAI thing, see if it like meets your needs. And over time, we're going to be adding more and more knobs to make it even more customizable. But, you know.

If you want the completely custom thing, you want control over every single thing, then you'd probably want to go and handle it using other solutions. So we're supportive of both, like engineers should pick. And then we got computer use, which I think Operator was obviously one of the hot releases of the year, and we're only two on 10. Let's talk about that. And it also seems like a separate model that has been fine-tuned for Operator that has browser access.

Yeah, absolutely. I mean, the computer use models are exciting. The cool thing about computer use is that we're just so, so early. It's like the GPT-2 of computer use or maybe GPT-1 of computer use right now. But it is a separate model that the computer use team has been working on. You send it screenshots and it tells you what action to take. So the outputs of it are almost always two calls. And you're inputting screenshots based on whatever computer you're trying to operate. Maybe it's doing output for a second because I'm sure your audience is super, super AI native, obviously. But what is computer use as a tool, right? And what's operator? So the idea for computer use is how do we let developers also build agents?

that can complete tasks for the users but using a computer or browser instead and so how do you get that done and so that's why we have this custom model like optimized for computer use that we use like for operator ourselves but the idea behind like putting it as an api is that imagine like now you want to you want to automate some tasks for your product or your own customers then now you can you can have like the ability to spin up one of these agents that will look at the screen and act on the screen so that means it will be able to click the ability to scroll the ability to type and to report back on the action. So that's what we mean by computer use and wrapping it as a tool also in the responses API. So now that gives a hint also at the multi-turn thing that we were hinting at earlier. The idea is like, yeah, maybe one of these actions can take a couple minutes to complete because there's maybe like 20 steps to complete that task, but now you can. Do you think computer use can play Pokemon? That'll be interesting. I guess we should try it. There's a lot of interest. I think Pokemon really is a good agent benchmark, to be honest. It seems like Claude is running into a lot of trouble. Sounds like we should make it a new Evalid, it looks like. Yeah, yeah, yeah.

Oh, and then one more thing before we move on to HSSDK. I know you have a hard stop. There's obviously, you know, blah, blah, dash preview, right? Like search preview, computer use preview, right? And you seem all like fine tunes of 4.0. I think the question is, are they all going to be merged into the main branch or are we basically always going to have subsets of these models?

Yeah, I think in the early days, research teams that open AI operate with fine-tuned models. And then once the thing gets more stable, we sort of merge it into the mainline. So that's definitely the vision. Going out of preview, as we get more comfortable and learn about all the developer use cases and we're doing a good job at them, we'll sort of make them part of the core models so that you don't have to deal with the bifurcation. You should think of it this way as exactly what happened last year when we introduced vision capabilities. Vision capabilities were in a vision preview model based off of GPT-4. And then vision capabilities now are obviously built into GPT-4. You can think about it the same way for the other modalities like audio and those kind of models like optimized for search and computer use.

Agent 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 added support for types. We've added support for guardrailing, 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. So you can pick any API from any provider that supports the chat completions API format. So it supports responses by default.

like easily plug it into anyone that uses the Jack Completions API. And similarly on the tracing side, you can support like multiple tracing providers. By default, it sort of points to the OpenAI dashboard. But, you know, there's like so many tracing companies out there and we'll announce our partnerships on that front too. So just like, you know, adding lots of core features and making it more usable, but still centered around like handoffs is like the main, main concept. And by the way, it's interesting, right? 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, et cetera? So that came out of learning from customers and was initially shipped as a low-key experiment, I'd say. But we were taken by surprise at how much momentum there was around this concept. And so we decided to learn from that and embrace it to be like, OK, maybe we should just embrace that as a core primitive of the OpenAI platform. And that's what led to the agent's SDK. And I think now, as Nikuj mentioned, it's adding all of these new capabilities to it, 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. Now you have the tools you need to kind of like separate the logic, right? You can have a triage agent that based on an intent goes to different kinds 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 like what exactly happened in that workflow when the triage agent did a handoff to a secondary agent and third and see the tool calls, et cetera. So we think that the agent's SDK combined with the tracing UIs will definitely help users and developers build better agent 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? 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. And I think we're going to go after it like pretty hard and hope we can like make this whole workflow a lot easier for developers. Awesome.

Thank you so much for the time. I'm sure you'll be busy on Twitter tomorrow without the developer feedback. Yeah, thank you so much for having us. And as always, we can't wait to see what developers will build with these tools and how we can learn as quickly as we can from them to make them even better over time. Awesome. Thank you, guys. Thank you. Thank you both.

Frequently asked questions

How long is this episode of Latent Space: The AI Engineer Podcast?

This episode is 25 minutes long.

When was this Latent Space: The AI Engineer Podcast episode published?

This episode was published on March 11, 2025.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this Latent Space: The AI Engineer Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.