{"id":128892,"date":"2025-03-12T17:50:36","date_gmt":"2025-03-12T17:50:36","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/how-to-use-openais-responses-api-agent-sdk\/"},"modified":"2025-03-12T17:50:36","modified_gmt":"2025-03-12T17:50:36","slug":"how-to-use-openais-responses-api-agent-sdk","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=128892","title":{"rendered":"How to Use OpenAI\u2019s Responses API &#038; Agent SDK?"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"article-start\">\n<p>OpenAI has been a leading solutions provider in the GenAI space. From the legendary <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2023\/03\/everything-you-need-to-know-about-chatgpt\/\" target=\"_blank\" rel=\"noreferrer noopener\">ChatGPT<\/a> to <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2024\/12\/openai-sora\/\" target=\"_blank\" rel=\"noreferrer noopener\">Sora<\/a>, it is a go-to platform for all the working professionals out there. With <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/03\/qwen-chat\/\" target=\"_blank\" rel=\"noreferrer noopener\">Qwen<\/a> and <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/02\/claude-sonnet-3-7\/\" target=\"_blank\" rel=\"noreferrer noopener\">Claude<\/a> gaining popularity among developers, OpenAI is back again with its latest updates, empowering developers to create more reliable and capable AI agents. The <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/03\/openai-agents-update\/\" target=\"_blank\" rel=\"noreferrer noopener\">major highlights<\/a> from the list include the Responses API and Agents SDK. In this blog, we will explore the Responses API and Agents SDK, understand how to access them, and learn how to use them to build real-world applications!<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-what-is-the-responses-api\">What is the Responses API?<\/h2>\n<p>The Responses API is OpenAI\u2019s newest API designed for simplifying the process of building AI-based applications. It combines the simplicity of the Chat Completions API with the powerful tool-use capabilities of the Assistants API. This means developers can now create agents that leverage multiple tools and handle complex, multi-step tasks more efficiently. This API reduced the reliance on complex prompt engineering and external integrations.\u00a0\u00a0<\/p>\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\">\n<div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"500\" data-dnt=\"true\">\n<p lang=\"en\" dir=\"ltr\">Our new API primitive: the Responses API. Combining the simplicity of Chat Completions with the tool-use of Assistants, this new foundation provides more flexibility in building agents. Web search, file search, or computer use are a couple lines of code!<a href=\"https:\/\/t.co\/s5Zsy4Wvqy\">https:\/\/t.co\/s5Zsy4Wvqy<\/a> <a href=\"https:\/\/t.co\/ParhjhSJgV\">pic.twitter.com\/ParhjhSJgV<\/a><\/p>\n<p>\u2014 OpenAI Developers (@OpenAIDevs) <a href=\"https:\/\/twitter.com\/OpenAIDevs\/status\/1899531367056064814?ref_src=twsrc%5Etfw\">March 11, 2025<\/a><\/p><\/blockquote>\n<\/div>\n<\/figure>\n<h3 class=\"wp-block-heading\" id=\"h-key-features-of-the-responses-api\">Key Features of the Responses API<\/h3>\n<ul class=\"wp-block-list\">\n<li>Built-in tools like web search, file search, and computer use, allowing agents to interact with real-world data.<\/li>\n<li>Unified design that simplifies polymorphism and improves usability.<\/li>\n<li>Better observability, helping developers track agent behavior and optimize workflows.<\/li>\n<li>No additional costs, as it is charged based on token usage at OpenAI\u2019s standard pricing.<\/li>\n<\/ul>\n<p>With these tools, Responses API is a game changer towards building AI agents. Infact, going forward, Responses API will support all of OpenAI\u2019s new and upcoming models. Let\u2019s see how we can use it to build applications.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-how-to-use-responses-api\">How to use Responses API?<\/h2>\n<p>To try Responses API:<\/p>\n<ol class=\"wp-block-list\">\n<li>Install openai (if not already installed) and use OpenAI.<\/li>\n<li>Ensure you have the latest OpenAI library(pip install openai \u2013 -upgrade).<\/li>\n<li>Import OpenAI and Set Up the Client.<\/li>\n<\/ol>\n<p>Once set up, you can request the Responses API. While basic API calls are common, its built-in capabilities make it powerful. Let\u2019s explore three key features:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>File Search: <\/strong>Retrieve insights from documents.<\/li>\n<li><strong>Web Search: <\/strong>Get real-time, cited information.<\/li>\n<li><strong>Computer Use: <\/strong>Automate system interactions.<\/li>\n<\/ul>\n<p>Now, let\u2019s see them in action!<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-1-file-search\">1. File Search<\/h3>\n<p>It enables models to retrieve information in a knowledge base of previously uploaded files through semantic and keyword search. Currently it doesn\u2019t support csv files, you can check the list of supported file types <a href=\"https:\/\/platform.openai.com\/docs\/guides\/tools-file-search#supported-files\" target=\"_blank\" rel=\"nofollow noopener\">here<\/a>.<\/p>\n<p>Note: Before using the file search, make sure to store your files in a vector database<\/p>\n<p>Task: Names of people with domain as Data Science. (I used the following <a href=\"https:\/\/drive.google.com\/file\/d\/1_RZ1YlKmBM9KvVaJPgzlEIzEOLfb7Up_\/view?usp=sharing\" target=\"_blank\" rel=\"nofollow noopener\">File<\/a>.)<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>response = client.responses.create(\n\n\u00a0\u00a0\u00a0\u00a0model=\"gpt-4o-mini\",\n\n\u00a0\u00a0\u00a0\u00a0input=\"Names of people with domain as Data Science\",\n\n\u00a0\u00a0\u00a0\u00a0tools=[{\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"type\": \"file_search\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"vector_store_ids\": [vector_store_id],\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"filters\": {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"type\": \"eq\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"key\": \"Domain\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"value\": \"Data Science\"\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n\n\u00a0\u00a0\u00a0\u00a0}]\n\n)\n\nprint(response.output_text)<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre class=\"wp-block-preformatted\">The person with the domain of Data Science is Alice Johnson [0].<br\/>[0] names_and_domains.pdf<\/pre>\n<h3 class=\"wp-block-heading\" id=\"h-2-web-search\">2. Web Search<\/h3>\n<p>This feature allows models to search the web for the latest information before generating a response, ensuring that the data remains up to date. The model can choose to search the web or not based on the content of the input prompt.<\/p>\n<p>Task : What are the best cafes in Vijay nagar?<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>response = client.responses.create(\n\n\u00a0\u00a0\u00a0\u00a0model=\"gpt-4o\",\n\n\u00a0\u00a0\u00a0\u00a0tools=[{\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"type\": \"web_search_preview\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"user_location\": {\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"type\": \"approximate\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"country\": \"IN\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"city\": \"Indore\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"region\": \"Madhya Pradesh\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n\n\u00a0\u00a0\u00a0\u00a0}],\n\n\u00a0\u00a0\u00a0\u00a0input=\"What are the best cafe in Vijay nagar?\",\n\n)\n\nprint(response.output_text)<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"872\" height=\"495\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp\" alt=\"\" class=\"wp-image-226205\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK-300x170.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK-768x436.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK-150x85.webp 150w\" sizes=\"(max-width: 872px) 100vw, 872px\"\/><\/figure>\n<h3 class=\"wp-block-heading\" id=\"h-3-computer-use\">3. Computer Use<\/h3>\n<p>It is a practical application of Computer-using Agent(CUA) Model, which combines the vision capabilities of GPT-4o with advanced reasoning to simulate controlling computer interfaces and perform tasks.<\/p>\n<p>Task: Check the latest blog on Analytics Vidhya website.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>response = client.responses.create(\n\n\u00a0\u00a0\u00a0\u00a0model=\"computer-use-preview\",\n\n\u00a0\u00a0\u00a0\u00a0tools=[{\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"type\": \"computer_use_preview\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"display_width\": 1024,\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"display_height\": 768,\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"environment\": \"browser\" # other possible values: \"mac\", \"windows\", \"ubuntu\"\n\n\u00a0\u00a0\u00a0\u00a0}],\n\n\u00a0\u00a0\u00a0\u00a0input=[\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"role\": \"user\",\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"content\": \"Check the latest blog on Analytics Vidhya website.\"\n\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\n\n\u00a0\u00a0\u00a0\u00a0],\n\n\u00a0\u00a0\u00a0\u00a0truncation=\"auto\"\n\n)\n\nprint(response.output)<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<pre class=\"wp-block-preformatted\">ResponseComputerToolCall(id='cu_67d147af346c8192b78719dd0e22856964fbb87c6a42e96', <br\/>action=ActionScreenshot(type=\"screenshot\"), <br\/>call_id='call_a0w16G1BNEk09aYIV25vdkxY', pending_safety_checks=[], <br\/>status=\"completed\", type=\"computer_call\")<\/pre>\n<h2 class=\"wp-block-heading\" id=\"h-how-is-the-responses-api-different-from-the-completions-api\">How is the Responses API Different from the Completions API?<\/h2>\n<p>Now that we have seen how the Responses API works, let\u2019s see how different it is from the pre-existing Completions API.<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-responses-api-vs-completions-api-execution\">Responses API vs Completions API: Execution<\/h3>\n<div class=\"table-responsive mb-3\">\n<table class=\"table table-hover table-bordered\">\n<thead\/>\n<tbody>\n<tr>\n<td>API\u00a0<\/td>\n<td>Responses API\u00a0<\/td>\n<td>Completions API<\/td>\n<\/tr>\n<tr>\n<td>Code<\/td>\n<td>\n<pre>from openai import OpenAI\nclient = OpenAI()\nresponse = client.responses.create(\n    model=\"gpt-4o\",\n    inputs=[\n        {\n            \"role\": \"user\",\n            \"content\": \"Write a one-sentence bedtime story about a unicorn.\"\n        }\n    ]\n)\nprint(response.output_text)<\/pre>\n<\/td>\n<td>\n<pre>from openai import OpenAI\nclient = OpenAI()\ncompletion = client.chat.completions.create(\n    model=\"gpt-4o\",\n    messages=[\n        {\n            \"role\": \"user\",\n            \"content\": \"Write a one-sentence bedtime story about a unicorn.\"\n        }\n    ]\n)\nprint(completion.choices[0].message.content)<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<td>Output<\/td>\n<td>\n<figure class=\"wp-block-image size-full\">\n                        <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/Responses-API.webp\" alt=\"\" class=\"wp-image-226212\" width=\"372\" height=\"209\"\/><br \/>\n                    <\/figure>\n<\/td>\n<td>\n<figure class=\"wp-block-image size-full\">\n                        <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/Completions-API.webp\" alt=\"\" class=\"wp-image-226213\" width=\"372\" height=\"209\"\/><br \/>\n                    <\/figure>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3 class=\"wp-block-heading\" id=\"h-responses-api-vs-completions-api-features\">Responses API vs Completions API: Features<\/h3>\n<p>Here is a simplified breakdown of the various features of Chat Complerions APi and Responses API:<\/p>\n<div class=\"table-responsive mb-3\">\n<table class=\"table table-hover table-bordered\">\n<thead\/>\n<tbody>\n<tr>\n<td>Capabilities<\/td>\n<td>Responses API<\/td>\n<td>Chat Completions API<\/td>\n<\/tr>\n<tr>\n<td>Text generation<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>Audio<\/td>\n<td>Coming soon<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>Vision<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>Web search<\/td>\n<td>\u2705<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>File search<\/td>\n<td>\u2705<\/td>\n<td>\u274c<\/td>\n<\/tr>\n<tr>\n<td>Computer use<\/td>\n<td>\u2705<\/td>\n<td>\u274c<\/td>\n<\/tr>\n<tr>\n<td>Code interpreter<\/td>\n<td>Coming soon<\/td>\n<td>\u274c<\/td>\n<\/tr>\n<tr>\n<td>Response Handling<\/td>\n<td>Returns a single structured output<\/td>\n<td>Returns choices array<\/td>\n<\/tr>\n<tr>\n<td>Conversation State<\/td>\n<td>previous_response_id for continuity<\/td>\n<td>Must be manually managed<\/td>\n<\/tr>\n<tr>\n<td>Storage Behavior<\/td>\n<td>Stored by default (store: false to disable)<\/td>\n<td>Stored by default<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3 class=\"wp-block-heading\" id=\"h-roadmap-what-will-continue-what-will-deprecate\">Roadmap: What Will Continue, What Will Deprecate?<\/h3>\n<p>With Responses API going live, the burning question now is, would it affect the existing Chat Completions and Assistant API? Yes it would. Let\u2019s look at how:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Chat Completions API: <\/strong>OpenAI will continue updating it with new models, but only when the capabilities don\u2019t require built-in tools.<\/li>\n<li><strong>Web Search &amp; File Search Tools: <\/strong>These will become more refined and powerful in the Responses API.<\/li>\n<li><strong>Assistants API:<\/strong> The Responses API incorporates its best features while improving performance. OpenAI has announced that full feature parity is coming soon, and the Assistants API will be deprecated by mid-2026.<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-introducing-the-agents-sdk\">Introducing the Agents SDK<\/h2>\n<p>Building AI agents is not just about having a powerful API\u2014it requires efficient orchestration. This is where OpenAI\u2019s Agents SDK comes into play. The Agents SDK is an open-source toolkit that simplifies agent workflows. This agent building framework integrates seamlessly with the Responses API and Chat Completions API. Additionally, it is also compatible with models from various providers, provided they offer an API endpoint styled like Chat Completions.<\/p>\n<p>Some of the key features of Agents SDK are:<\/p>\n<ul class=\"wp-block-list\">\n<li>It allows developers to configure AI agents with built-in tools.<\/li>\n<li>It enables multi-agent orchestration, allowing seamless coordination of different agents as needed.<\/li>\n<li>It allows us to track the conversation &amp; the flow of information between our agents.<\/li>\n<li>It allows an easier way to apply guardrails for safety and compliance.<\/li>\n<li>It ensures that developers can monitor and optimize agent performance with built-in observability tools.<\/li>\n<\/ul>\n<p>Agent SDK isn\u2019t a \u201cnew addition\u201d to OpenAI\u2019s jewels. It is an improved version of \u201cSwarm\u201d, the experimental SDK that OpenAI had released last year. While \u201cSwarm\u201d was just released for educational purposes, it became popular among developers and was adopted by several enterprises too. To cater to more enterprises and help them build production-grade agents seamlessly, Agents SDK has been released. Now that we know what Agents SDK has to offer, let\u2019s see how we can use this framework to build our agentic system.<\/p>\n<p>Also Read: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2024\/09\/generative-ai-coding-extensions-in-vs-code\/\" target=\"_blank\" rel=\"noreferrer noopener\">Top 10 Generative AI Coding Extensions in VS Code<\/a><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-build-a-multi-agentic-system-using-agent-sdk\">Build a Multi-agentic System using Agent SDK<\/h2>\n<p>We will build a multi-agent system that helps users with car recommendations and resale price estimation by leveraging LLM-powered agents and web search tools to provide accurate and up-to-date insights.<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-step-1-building-a-simple-ai-agent\">Step 1: Building a Simple AI Agent<\/h3>\n<p>We begin by creating a Car Advisor Agent that helps users choose a suitable car type based on their needs.<\/p>\n<p><strong>Code:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>car_advisor = Agent(\n\n\u00a0\u00a0\u00a0\u00a0name=\"Car advisor\",\n\n\u00a0\u00a0\u00a0\u00a0instructions= \"You are an expert in advising suitable car type like sedan, hatchback etc to people based on their requirements.\",\n\n\u00a0\u00a0\u00a0\u00a0model=\"gpt-4o\",\n\n\u00a0\u00a0\u00a0\u00a0)\n\nprompt = \"I am looking for a car that I enjoy driving and comforatbly take 4 people. I plane to travel to hills. What type of car should I buy?\"\n\nasync def main():\n\n\u00a0\u00a0\u00a0\u00a0result = await Runner.run(car_advisor, prompt)\n\n\u00a0\u00a0\u00a0\u00a0print(result.final_output)\n\n# Run the function in Jupyter\n\nawait main()<\/code><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"170\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/unnamed-5.webp\" alt=\"Building a Simple AI Agent \" class=\"wp-image-226227\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/unnamed-5.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/unnamed-5-300x58.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/unnamed-5-768x150.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/unnamed-5-150x29.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<h3 class=\"wp-block-heading\" id=\"h-step-2-build-the-multi-agent-system\">Step 2: Build the Multi-Agent System<\/h3>\n<p>With the basic agent in place, we now create a multi-agent system incorporating different AI agents specialized in their respective domains. Here\u2019s how it works:<\/p>\n<p>Agents in the Multi-Agent System<\/p>\n<ol class=\"wp-block-list\">\n<li>Car Sell Estimate Agent: It provides a resale price estimate based on car details.<\/li>\n<li>Car Model Advisor Agent: It suggests suitable car models based on budget and location.<\/li>\n<li>Triage Agent: It directs the query to the appropriate agent.<\/li>\n<\/ol>\n<p>We will provide two different prompts to the agents and observe their outputs.<\/p>\n<h4 class=\"wp-block-heading\" id=\"h-code\">Code:<\/h4>\n<pre class=\"wp-block-code\"><code>car_sell_estimate = Agent(\n\n\u00a0\u00a0\u00a0\u00a0name=\"Car sell estimate\",\n\n\u00a0\u00a0\u00a0\u00a0instructions= \"You are an expert in suggesting a suitable price of reselling a car based on its make, model, year of purchase, and condition.\",\n\n\u00a0\u00a0\u00a0\u00a0handoff_description= \"Car reselling price estimate expert\",\n\n\u00a0\u00a0\u00a0\u00a0model=\"gpt-4o\",\n\n\u00a0\u00a0\u00a0\u00a0tools=[WebSearchTool()]\n\n\u00a0\u00a0\u00a0\u00a0)\n\ncar_model_advisor = Agent(\n\n\u00a0\u00a0\u00a0\u00a0name=\"Car model advisor\",\n\n\u00a0\u00a0\u00a0\u00a0instructions= \"You are an expert in advising suitable car model to people based on their budget and location.\",\n\n\u00a0\u00a0\u00a0\u00a0handoff_description= \"Car model recommendation expert\",\n\n\u00a0\u00a0\u00a0\u00a0model=\"gpt-4o\",\n\n\u00a0\u00a0\u00a0\u00a0tools=[WebSearchTool()]\n\n\u00a0\u00a0\u00a0\u00a0)\n\ntriage_agent = Agent(\n\n\u00a0\u00a0\u00a0\u00a0name = \"Triage Agent\",\n\n\u00a0\u00a0\u00a0\u00a0instructions=\"You determine the appropriate agent for the task.\",\n\n\u00a0\u00a0\u00a0\u00a0model = \"gpt-4o\",\n\n\u00a0\u00a0\u00a0\u00a0handoffs=[car_sell_estimate, car_model_advisor]\n\n)\n\nPrompt 1: \n\nprompt = \"I want to sell my Ecosport car in New Delhi. It is 3 years old and in good condition. 50000Km. What price should I expect?\"\n\nasync def main():\n\n\u00a0\u00a0\u00a0\u00a0result = await Runner.run(triage_agent, prompt)\n\n\u00a0\u00a0\u00a0\u00a0print(result.final_output)\n\n# Run the function in Jupyter\n\nawait main()<\/code><\/pre>\n<p><strong>Output 1:<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"165\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-Output-1.webp\" alt=\"SDK Output 1 \" class=\"wp-image-226229\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-Output-1.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-Output-1-300x57.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-Output-1-768x145.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-Output-1-150x28.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p><strong>Prompt 2:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>prompt = \"I want to buy a high acceleration car, comfortable for 4 people for 20 lakhs in New Delhi. Which car should I buy?\"\n\nasync def main():\n\n\u00a0\u00a0\u00a0\u00a0result = await Runner.run(triage_agent, prompt)\n\n\u00a0\u00a0\u00a0\u00a0print(result.final_output)\n\n# Run the function in Jupyter\n\nawait main()<\/code><\/pre>\n<p><strong>Output 2:<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"171\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-2-Output.webp\" alt=\"\" class=\"wp-image-226230\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-2-Output.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-2-Output-300x59.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-2-Output-768x151.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/03\/SDK-2-Output-150x29.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p>We got the car options as per our requirements! The implementation was simple and quick. You can use this agentic framework to build agents for travel support, financial planning, medical assistance, personalized shopping, automated research, and much more.<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-agent-s-sdk-a-new-agentic-framework-in-town\">Agent\u2019s SDK: A New Agentic Framework in Town?<\/h3>\n<p>OpenAI\u2019s Agents SDK represents its strategic push toward providing a dedicated framework for AI agent development. The framework includes crew-like features through its triage agent, mimicking Crew AI\u2019s features. Similarly, its handoff mechanisms closely resemble those of AutoGen, allowing efficient delegation of tasks among multiple agents. <\/p>\n<p>Furthermore, LangChain\u2019s strength in modular agent orchestration is mirrored in the way the Agents SDK provides structured workflows, ensuring smooth execution and adaptability. While Agents SDK offers nothing more than what the existing frameworks already do, it soon will give them a tough competition.\u00a0<\/p>\n<p>Also Read: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/02\/claude-3-7-sonnet-coding\/\" target=\"_blank\" rel=\"noreferrer noopener\">Claude 3.7 Sonnet: The Best Coding Model Yet?<\/a><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-why-do-developers-need-responses-api-amp-agents-sdk\">Why Do Developers Need Responses API &amp; Agents SDK?<\/h2>\n<p>Responses API and Agents SDK provide developers with the tools &amp; platform to build AI-driven applications. By reducing the reliance on manual prompt engineering and extensive custom logic, these tools allow developers to focus on creating intelligent workflows with minimal friction.<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Easy Integration: <\/strong>Developers no longer need to juggle multiple APIs for different tools; the Responses API consolidates web search, file search, and computer use into a single interface.<\/li>\n<li><strong>Better Observability: <\/strong>With built-in monitoring and debugging tools, developers can optimize agent performance more easily.<\/li>\n<li><strong>Scalability: <\/strong>The Agents SDK provides a structured approach to handling multi-agent workflows, enabling more robust automation.<\/li>\n<li><strong>Improved Development Cycles:<\/strong> By eliminating the need for extensive prompt iteration and external tool integration, developers can prototype and deploy agent-based applications at a much faster pace.<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n<p>The introduction of OpenAI\u2019s Responses API and Agents SDK is a game-changer for AI-driven automation. By leveraging these tools, we successfully built a multi-agent system very quickly with just a few lines of code. This implementation can be further expanded to include additional tools, integrations, and agent capabilities, paving the way for more intelligent and autonomous AI applications in various industries.<\/p>\n<p>These tools are surely going to help developers and enterprises reduce development complexity, and create smarter, more scalable automation solutions. Whether it\u2019s for customer support, research, business automation, or industry-specific AI applications, the Responses API and Agents SDK offer a powerful framework to build next-generation AI-powered systems with ease.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-frequently-asked-questions\">Frequently Asked Questions<\/h2>\n<div class=\"schema-faq wp-block-yoast-faq-block\">\n<div class=\"schema-faq-section\" id=\"faq-question-1741796626944\"><strong class=\"schema-faq-question\">Q1. What is OpenAI\u2019s Responses API?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. The Responses API is OpenAI\u2019s latest AI framework that simplifies agent development by integrating built-in tools like web search, file search, and computer use.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1741796637613\"><strong class=\"schema-faq-question\">Q2. How is the Responses API different from the Completions API?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. Unlike the Completions API, the Responses API supports multi-tool integration, structured outputs, and built-in conversation state management.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1741796655010\"><strong class=\"schema-faq-question\">Q3. What is OpenAI\u2019s Agents SDK?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. The Agents SDK is an open-source framework that enables developers to build and orchestrate multi-agent systems with AI-powered automation.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1741796668761\"><strong class=\"schema-faq-question\">Q4. How does the Agents SDK improve AI development?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. It allows seamless agent coordination, enhanced observability, built-in guardrails, and improved performance tracking.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1741796682178\"><strong class=\"schema-faq-question\">Q5. Can the Responses API and Agents SDK be used together?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. Yes! The Agents SDK integrates with the Responses API to create powerful AI-driven applications.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1741796699426\"><strong class=\"schema-faq-question\">Q6. Is OpenAI\u2019s Agents SDK compatible with other AI models?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. Yes, it can work with third-party models that support Chat Completions API-style integrations.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1741796712828\"><strong class=\"schema-faq-question\">Q7. What industries can benefit from multi-agent AI systems?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. Industries like automotive, finance, healthcare, customer support, and research can use AI-driven agents to optimize operations and decision-making.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"border-top py-3 author-info my-4\">\n<div class=\"author-card d-flex align-items-center\">\n<div class=\"flex-shrink-0 overflow-hidden\">\n                                    <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/author\/anu81685\/\" class=\"text-decoration-none active-avatar\"><br \/>\n                                                                       <img decoding=\"async\" src=\"https:\/\/av-eks-lekhak.s3.amazonaws.com\/media\/lekhak-profile-images\/converted_image_Z9nKPBc.webp\" width=\"48\" height=\"48\" alt=\"Anu Madan\" loading=\"lazy\" class=\"rounded-circle\"\/><\/p>\n<p>                                <\/a>\n                                <\/div>\n<\/p><\/div>\n<p>   Anu Madan has 5+ years of experience in content creation and management. Having worked as a content creator, reviewer, and manager, she has created several courses and blogs. Currently, she working on creating and strategizing the content curation and design around Generative AI and other upcoming technology.    <\/p>\n<\/p><\/div>\n<\/p><\/div>\n<p><h4 class=\"fs-24 text-dark\">Login to continue reading and enjoy expert-curated content.<\/h4>\n<p>                        <button class=\"btn btn-primary mx-auto d-table\" data-bs-toggle=\"modal\" data-bs-target=\"#loginModal\" id=\"readMoreBtn\">Keep Reading for Free<\/button>\n                    <\/p>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>\n<br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenAI has been a leading solutions provider in the GenAI space. From the legendary ChatGPT to Sora, it is a go-to platform for all the working professionals out there. With Qwen and Claude gaining popularity among developers, OpenAI is back again with its latest updates, empowering developers to create more reliable and capable AI agents. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":128893,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[3038,13966,30679,33529,56228],"dealstore":[],"offerexpiration":[],"class_list":["post-128892","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-agent","tag-api","tag-openais","tag-responses","tag-sdk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Use OpenAI\u2019s Responses API &amp; Agent SDK? - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=128892\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use OpenAI\u2019s Responses API &amp; Agent SDK? - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"OpenAI has been a leading solutions provider in the GenAI space. From the legendary ChatGPT to Sora, it is a go-to platform for all the working professionals out there. With Qwen and Claude gaining popularity among developers, OpenAI is back again with its latest updates, empowering developers to create more reliable and capable AI agents. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=128892\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-12T17:50:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"872\" \/>\n\t<meta property=\"og:image:height\" content=\"495\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=128892#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=128892\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"How to Use OpenAI\u2019s Responses API &#038; Agent SDK?\",\"datePublished\":\"2025-03-12T17:50:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=128892\"},\"wordCount\":1856,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=128892#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp\",\"keywords\":[\"Agent\",\"API\",\"OpenAIs\",\"Responses\",\"SDK\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=128892#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=128892\",\"url\":\"https:\/\/fivemor.com\/?p=128892\",\"name\":\"How to Use OpenAI\u2019s Responses API & Agent SDK? - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=128892#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=128892#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp\",\"datePublished\":\"2025-03-12T17:50:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=128892#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=128892\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=128892#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp\",\"width\":872,\"height\":495},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=128892#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use OpenAI\u2019s Responses API &#038; Agent SDK?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Use OpenAI\u2019s Responses API & Agent SDK? - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=128892","og_locale":"en_US","og_type":"article","og_title":"How to Use OpenAI\u2019s Responses API & Agent SDK? - Som2ny Network","og_description":"OpenAI has been a leading solutions provider in the GenAI space. From the legendary ChatGPT to Sora, it is a go-to platform for all the working professionals out there. With Qwen and Claude gaining popularity among developers, OpenAI is back again with its latest updates, empowering developers to create more reliable and capable AI agents. [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=128892","og_site_name":"Som2ny Network","article_published_time":"2025-03-12T17:50:36+00:00","og_image":[{"width":872,"height":495,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=128892#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=128892"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"How to Use OpenAI\u2019s Responses API &#038; Agent SDK?","datePublished":"2025-03-12T17:50:36+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=128892"},"wordCount":1856,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=128892#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp","keywords":["Agent","API","OpenAIs","Responses","SDK"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=128892#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=128892","url":"https:\/\/fivemor.com\/?p=128892","name":"How to Use OpenAI\u2019s Responses API & Agent SDK? - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=128892#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=128892#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp","datePublished":"2025-03-12T17:50:36+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=128892#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=128892"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=128892#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/OpenAI-SDK.webp.webp","width":872,"height":495},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=128892#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"How to Use OpenAI\u2019s Responses API &#038; Agent SDK?"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/128892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=128892"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/128892\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/128893"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=128892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=128892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=128892"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=128892"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=128892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}