Interactions API 新增 background=True 参数处理长时异步任务
写异步 agent 任务总超时?试试 Interactions API 新加的 background=True,可以断开等结果再重连,还支持流式。
Interactions API 引入了 background=True 参数,用于处理超过标准 HTTP 超时限制的长时间运行异步代理任务。
官方发布使用指南,说明如何配置请求、在任务完成后重新连接以及流式传输结果。该参数允许客户端在提交任务后立即返回,而无需保持连接直到任务完成。
The Interactions API introduced background=True to handle long-running, async agent tasks that exceed standard HTTP timeout limits. We wrote a guide on how to use it, how to reconnect, stream.📊 5 ⚡
This report is categorized under AITOP's "How-to" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Interactions API, background=True, 异步任务, 教程.
Source attribution: curated from Philipp Schmid (@_philschmid).