# OpenAI 发布了 openai-agents-python v0.18.3，新增可配置追踪跨度、实时会话用量跟踪，并修复多项 bug

- 来源：OpenAI Agents Python Releases
- 发布时间：2026-07-17 11:39
- AIWatch 分数：63
- AIWatch 标记：当日精选
- AIWatch 链接：https://aiwatch.icu/events/evt_01kxzg8xpf1efjd24jsww54zcs
- 原文链接：https://github.com/openai/openai-agents-python/releases/tag/v0.18.3

## 精选理由

常规快讯，保留列表

## AI 摘要

OpenAI 发布了 openai-agents-python v0.18.3，新增可配置追踪跨度、实时会话用量跟踪，并修复多项 bug。

## 正文

What's Changed

feat: make task and turn tracing spans configurable by @seratch in #3834
feat(realtime): track response usage in session context by @seratch in #3812
fix(memory): serialize OpenAI conversation session initialization by @russeell in #3821
fix(models): raise UserError for conflicting provider args instead of assert by @Dhruva-Das in #3809
fix(handoffs): preserve user messages containing history wrappers by @russeell in #3815
fix(computer): isolate provider instances across concurrent runs by @russeell in #3843
fix(sandbox): avoid redundant E2B workspace root creation by @seratch in #3845
fix: preserve streamed session input across model retries by @seratch in #3857
fix: prevent stale prepared-item identity reuse by @seratch in #3858
fix: AdvancedSQLiteSession clear_session and pop_item metadata leaks by @okaditya84 in #3755
fix: parse Google docstrings missing the blank line before a section by @sohumt123 in #3832
fix: bound $ref expansion in strict JSON schema conversion by @ioleksiuk in #3838
fix: redact non-tool trace error details by @seratch in #3848

Documentation & Other Changes

docs: updates for hosted multi-agent support by @seratch in #3789
docs: make UserContext example runnable in Agents documentation by @MuhammadHamidRaza in #3851
chore: enable flake8-async for runtime source by @seratch in #3813
Release 0.18.3 by @github-actions[bot] in #3859

New Contributors

@Dhruva-Das made their first contribution in #3809
@russeell made their first contribution in #3815
@okaditya84 made their first contribution in #3755
@sohumt123 made their first contribution in #3832

Full Changelog: v0.18.2...v0.18.3
