OpenAI Agents SDK JavaScript v0.22.0-alpha.3
OpenAI Agents SDK for JavaScript released v0.22.0-alpha.3, adding typed decisions, expanded voice/realtime platform support, workspace executor controls, and concurrent tool callbacks by default.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
OpenAI has published Agents SDK JavaScript v0.22.0-alpha.3. Key additions include typed decisions via agent.decide(), ctx.decide(), and OpenAIDecisions, alongside DecisionHandoff for native text handoffs. The release broadens model backend options (ResponsesModel, ChatCompletionsModel, AiSdkModel) and extends Realtime/voice support across Node.js, browsers, React Native, and Workers. Breaking and upgrade behavioral changes include: - Tool callbacks in native catalogs now execute concurrently by default; maxFunctionConcurrency: 1 must be set to preserve serial execution per turn. - Session.enqueue() no longer accepts ifBusy; callers must use session.submit(input, { ifBusy: 'reject' }) to reject busy calls. - AgentOptions requires a matching outputType when non-string Output types are defined. - Serialized Classic sandbox restores require explicit trusted bindings from application configuration, including specific resumeAuthority attributes. - OpenAIDecisions client injection requires openai = 7.30.0. - ESM and CommonJS imports now share class and tool identities on supported Node.js runtimes.
可执行摘要
OpenAI Agents SDK JS v0.22.0-alpha.3 introduces typed Decisions (via agent.decide, ctx.decide, OpenAIDecisions adapter), application-owned model backends, and concurrent tool callback execution by default. It changes Session methods (Session.enqueue rejects ifBusy, replaced by session.submit), enforces outputType for non-string types, and tightens sandbox restore authority requirements.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Set maxFunctionConcurrency: 1 on agent.run() or agent.session() if your tools rely on serial execution or have shared mutable state.
- Update Session queue calls: replace Session.enqueue(input, { ifBusy }) with session.submit(input, { ifBusy: 'reject' }).
- Specify outputType in AgentOptions if non-string Output types are used.
- Upgrade the openai dependency to at least 7.30.0 if using OpenAIDecisions with an injected client.