OpenAI Agents SDK Python v0.26.1
OpenAI Agents SDK Python v0.26.1 brings bug fixes and compatibility updates for tool approvals, SQLite session history branching, structured outputs, and streaming text processing.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Version 0.26.1 is a backward-compatible patch release for the OpenAI Agents SDK Python. Key updates include: - Bug fixes across streaming (preserving named function choices in streamed Chat Completions, replaying handoffs with null reasoning content, and streaming quoted, Chinese, and Japanese sentences before voice turns end). - Tool approval improvements: Runner preserves explicit rejections when always approve=True , and nested runs isolate pending approvals even with identical local call IDs. - Structured outputs: Strict scalar and list RootModel output schemas are wrapped in an object while accepting bare values from custom providers; strict date and UUID parameters accept JSON strings. - Session memory: AdvancedSQLiteSession keeps branches accessible after popping the last item until explicit deletion or clear, with automatic migration on opening existing databases. - Dependency bounds updates in Twilio examples (httpx2, openai).
可执行摘要
OpenAI Agents SDK Python v0.26.1 patch release introduces bug fixes including wrapping non-object RootModel outputs, maintaining placeholder response ID hygiene during compaction, resolving tool approval isolation in nested runs, preserving named function choices in streamed completions, and updating SQLite session branch lifetime handling.
- Agent 实用度
- 62/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade to OpenAI Agents SDK Python v0.26.1 without migration requirements for public APIs.
- If using custom providers with RootModel scalar or list outputs, ensure alignment with object-wrapped schemas (e.g., {"response": 1, 2 }).
- Verify AdvancedSQLiteSession databases update automatically upon opening, noting branch lifetime changes after popping the last item.