Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

OpenAI Agents integration emits `PydanticDeprecatedSince20` on tool calls - `_set_output_data` calls `dict()`

クローズ 初心者向け
#7,827 コメント 4 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@alexander-alderman-webb がすでに取り組んでいます。

2026年10月2日 から。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

sentry_sdk/integrations/openai_agents/utils.py の 227-236 行目から始め、提供された OpenAI Agents のセットアップと Python の非推奨警告コマンドを使って警告を再現します。非推奨のシリアライズ呼び出しを更新し、サポート対象の openai-agents バージョンで function calls または非テキストコンテンツに対する PydanticDeprecatedSince20 警告が出ないようにします。

索引モデルが issue の本文から書いたものです。

説明

Bug Python
How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.71.0

Steps to Reproduce
  1. sentry_sdk.init(integrations=[OpenAIAgentsIntegration()], send_default_pii=True, traces_sample_rate=1.0) with openai-agents installed.
  2. Enable DeprecationWarnings (python -W error::DeprecationWarning, or any dependency that does so process-wide).
  3. Run an agent whose model response contains a function call.
Expected Result

No warning from sentry_sdk.

Actual Result
PydanticDeprecatedSince20: The `dict` method is deprecated; use `model_dump` instead.
  sentry_sdk/integrations/openai_agents/utils.py:229

The same warning comes from line 236 when a message contains non-text content such as a refusal.

https://github.com/getsentry/sentry-python/blob/8afefe81d014cc6bffffca28c18e1219f545d49f/sentry_sdk/integrations/openai_agents/utils.py#L227-L236

Every supported openai-agents version requires Pydantic v2, so model_dump() is a drop-in replacement.

主要言語
Python
スター
2.2k
フォーク
682
平均マージ
1日 8時間
マージ済み PR(30日)
239

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-python のほかの issue

getsentry/sentry-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。