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

pydantic-ai: capture web-search and grounding counts from `RequestUsage.details`

オープン
#866 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
observability

調査の方向性

Start in py/src/braintrust/integrations/pydantic_ai/tracing.py around lines 1388–1428, where RequestUsage.details currently provides reasoning and cached-token data. Review the existing cassette-backed integration tests and add coverage for a web-search tool run. Confirm that web-search and grounding counts are captured without breaking compatibility with the listed older pydantic-ai versions, and verify the workspace metadata behavior if included.

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

説明

feature python

pydantic-ai 2.52–2.54 started counting OpenAI native web searches (#8310) and Google grounding queries (#8891) in RequestUsage.details.

The usage extractor in py/src/braintrust/integrations/pydantic_ai/tracing.py (around lines 1388–1428) only reads reasoning and cached tokens from details.

Proposal

  • Record the new counts as metrics (or metadata if they aren't token counts), read defensively so older versions (0.1.9, 1.0.1, 1.10.0) are unaffected.
  • Optionally record the new workspace= run kwarg's kind in metadata (_AGENT_INPUT_ALLOWLIST already keeps the object itself out of spans).
  • Add cassette-backed coverage with a web-search tool run.

Parent: #858 (found while reviewing the 2026-10-05 weekly dependency update, #849).

🤖 Generated with Claude Code

主要言語
Python
スター
21
フォーク
23
平均マージ
19時間 55分
マージ済み PR(30日)
95

環境構築

はじめの一歩

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

braintrustdata/braintrust-sdk-python のほかの issue

braintrustdata/braintrust-sdk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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