在 Vercel 上使用 OpenAI Agents API 構建
Build with OpenAI Agents API on Vercel
summary_zh: 現在可以在 Vercel 上使用 OpenAI Agents API 建置並部署長時間執行、使用工具的代理程式。
- 代理迴圈與會話狀態:由 OpenAI 管理,確保代理持續運作。
You can now build and deploy long-running, tool-using agents with the OpenAI Agents API on Vercel. OpenAI manages the agent loop and session state, while Vercel hosts the application and connects each session to Vercel Sandbox for code execution and file access.
With this integration, you get:
An OpenAI-managed agent loop and session state
Reliable Sandbox creation and reconnection through signed OpenAI webhooks and Vercel Queues
An isolated execution environment for every agent session
A persistent workspace that retains files across follow-up instructions
A scale-to-zero architecture without an always-on worker
Follow the step-by-step guide to build and deploy an agent, or explore the sample application.
來源:Vercel Blog · vercel.com