Skip to content

Conversation

@torresmateo
Copy link
Collaborator

@torresmateo torresmateo commented Jan 13, 2026

Preview here: https://docs-git-mateo-dev-143-update-openai-agents-qu-dad705-arcade-ai.vercel.app/en/guides/agent-frameworks/openai-agents/use-arcade-with-openai-agents

New version of the OpenAI agents SDK and Arcade tutorial. We now:

  • Implement an agentic loop
  • Teach people and LLMs how to get Arcade tools and their auth requirements using the client direcly (as opposed to using the wrapper)
  • Delete old, unnecessary guides in this section
  • Updated links on the Agent Frameworks overview

Note

Adds a new guide and restructures OpenAI Agents docs

  • New use-arcade-with-openai-agents guide: builds a CLI agent using OpenAI Agents SDK (Python), implements an agentic loop, transforms Arcade tools to Agents FunctionTools, and handles JIT tool authorization via arcadepy.
  • Removes legacy guides use-arcade-tools and user-auth-interrupts; cleans up references.

Navigation and references updates

  • Updates OpenAI Agents section _meta.tsx and overview “Next steps” to point to the new guide and tidy copy.
  • Updates Agent Frameworks landing cards to link to the new OpenAI Agents guide and revised LangChain guide path.
  • Updates public/llms.txt to drop old links and add the new OpenAI Agents SDK guide entry.

Written by Cursor Bugbot for commit 7b73c15. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Jan 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 19, 2026 8:08pm

Request Review

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style Review

Found 10 style suggestion(s).

Powered by Vale + Claude


# Setup Arcade with OpenAI Agents SDK

The [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/) is a popular Python library for building AI agents. It is built on top of the OpenAI API, and provides a simple interface for building agents.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Google.Passive: Changed 'is built' to 'builds' for active voice and removed condescending 'simple'

Suggested change
The [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/) is a popular Python library for building AI agents. It is built on top of the OpenAI API, and provides a simple interface for building agents.
The [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/) is a popular Python library for building AI agents. It builds on top of the OpenAI API, and provides an interface for building agents.

<GuideOverview>
<GuideOverview.Outcomes>

Learn how to integrate Arcade tools using OpenAI Agents primitives. You will implement a CLI agent that can user Arcade tools to help the user with their requests. Tools that require authorization will be handled automatically by the harness, so users don't need to worry about it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Google.Passive: Changed passive 'will be handled' to active voice 'handles'

Suggested change
Learn how to integrate Arcade tools using OpenAI Agents primitives. You will implement a CLI agent that can user Arcade tools to help the user with their requests. Tools that require authorization will be handled automatically by the harness, so users don't need to worry about it.
Learn how to integrate Arcade tools using OpenAI Agents primitives. You will implement a CLI agent that can user Arcade tools to help the user with their requests. The harness handles tools that require authorization automatically, so users don't need to worry about it.


## The agent architecture you will build in this guide

The OpenAI Agents SDK provides an [Agent](https://openai.github.io/openai-agents-python/ref/agent/#agents.agent.Agent) class that implements a ReAct agent. It provides a simple interface for you to define the system prompt, the model, the tools, and possible sub-agents that can be used with handoffs. In this guide, you will manually keep track of the agent's history and state, and use the `run` method to invoke the agent in an agentic loop.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alex.Condescending: Removed condescending 'simple' and changed passive 'that can be used' to active voice 'for handoffs'

Suggested change
The OpenAI Agents SDK provides an [Agent](https://openai.github.io/openai-agents-python/ref/agent/#agents.agent.Agent) class that implements a ReAct agent. It provides a simple interface for you to define the system prompt, the model, the tools, and possible sub-agents that can be used with handoffs. In this guide, you will manually keep track of the agent's history and state, and use the `run` method to invoke the agent in an agentic loop.
The OpenAI Agents SDK provides an [Agent](https://openai.github.io/openai-agents-python/ref/agent/#agents.agent.Agent) class that implements a ReAct agent. It provides an interface for you to define the system prompt, the model, the tools, and possible sub-agents for handoffs. In this guide, you will manually keep track of the agent's history and state, and use the `run` method to invoke the agent in an agentic loop.

import json
```

This is quite a number of imports, let's break them down:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write-good.Weasel: Removed weasel word 'quite' and avoided first-person plural 'let's'

Suggested change
This is quite a number of imports, let's break them down:
This is a number of imports, here's a breakdown:


Here you get the Arcade tools you want the agent to use, and transform them into OpenAI Agents tools. The first step is to initialize the Arcade client, and get the tools you want to use. Since OpenAI is itself an inference provider, the Arcade API provides a convenient endpoint to get the tools in the OpenAI format, which is also the format expected by the OpenAI Agents framework.

This helper function is fairly long, here's a breakdown of what it does for clarity:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write-good.Weasel: Removed weasel word 'fairly'

Suggested change
This helper function is fairly long, here's a breakdown of what it does for clarity:
This helper function is long, here's a breakdown of what it does for clarity:

- Get the tools from the configured MCP Servers
- Create an agent with the configured tools
- Initialize the conversation
- Run the loop!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Google.Exclamation: Removed exclamation point

Suggested change
- Run the loop!
- Run the loop

- Initialize the conversation
- Run the loop!

The loop is a simple while loop that captures the user input, appends it to the conversation history, and then runs the agent. The agent's response is then appended to the conversation history, and the loop continues.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alex.Condescending: Removed condescending 'simple'

Suggested change
The loop is a simple while loop that captures the user input, appends it to the conversation history, and then runs the agent. The agent's response is then appended to the conversation history, and the loop continues.
The loop is a while loop that captures the user input, appends it to the conversation history, and then runs the agent. The agent's response is then appended to the conversation history, and the loop continues.


# initialize the conversation
history: list[TResponseInputItem] = []
# run the loop!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Google.Exclamation: Removed exclamation point

Suggested change
# run the loop!
# run the loop


# initialize the conversation
history: list[TResponseInputItem] = []
# run the loop!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Google.Exclamation: Removed exclamation point

Suggested change
# run the loop!
# run the loop

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants