You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/home/oai-agents/overview.mdx
+93-1Lines changed: 93 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,39 @@
2
2
title: "Arcade with OpenAI Agents overview"
3
3
description: "Comprehensive guide to using Arcade with the OpenAI Agents library"
4
4
---
5
+
import { Steps, Tabs } from"nextra/components";
6
+
5
7
6
8
# Arcade with OpenAI Agents
7
9
8
-
The `agents-arcade` package provides a seamless integration between [Arcade](https://arcade.dev) and the [OpenAI Agents Library](https://github.com/openai/openai-python). This integration allows you to enhance your AI agents with powerful Arcade tools including Google Mail, LinkedIn, GitHub, and many more.
10
+
Arcade provides seamless integration with the [OpenAI Agents Library](https://github.com/openai/openai-python) and [OpenAI Agents JS](https://openai.github.io/openai-agents-js/), allowing you to enhance your AI agents with powerful tools including Gmail, LinkedIn, GitHub, and many more. This integration is available through the `agents-arcade` package for Python and our [JavaScript client library](https://github.com/ArcadeAI/arcade-js).
Check out the complete working example in our [GitHub repository](https://github.com/ArcadeAI/arcade-ai/tree/main/examples/openai-agents-ts/src/index.ts).
When a user needs to authorize access to a tool (like Google or GitHub), the agent will raise an `AuthorizationError` with a URL for the user to visit:
72
150
73
151
```python
@@ -79,6 +157,20 @@ except AuthorizationError as e:
79
157
print(f"Please visit this URL to authorize: {e}")
80
158
```
81
159
160
+
</Tabs.Tab>
161
+
162
+
<Tabs.Tab>
163
+
164
+
When a user needs to authorize access to a tool (like Google or GitHub), the agent will show a message like this:
Once you have authorized access, I can retrieve your latest emails.
169
+
```
170
+
171
+
</Tabs.Tab>
172
+
</Tabs>
173
+
82
174
After visiting the URL and authorizing access, the user can run the agent again with the same `user_id`, and it will work without requiring re-authorization.
0 commit comments