pydantic-ai: capture web-search and grounding counts from `RequestUsage.details`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- observability
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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_ALLOWLISTalready 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
- Ngôn ngữ chính
- Python
- Star
- 21
- Fork
- 23
- Merge trung bình
- 20 giờ 2 phút
- Pull request đã merge (30 ngày)
- 95
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của braintrustdata/braintrust-sdk-python
-
feature python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
braintrustdata/braintrust-sdk-python#868 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature integration: mistral python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
braintrustdata/braintrust-sdk-python#867 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[bot] Google GenAI: streaming responses drop `url_context_metadata` that non-streaming responses preserveCó thể đã có người làm @Kayvan-Zahiri đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
braintrustdata/braintrust-sdk-python#774 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature python
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
braintrustdata/braintrust-sdk-python#863 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug python
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
braintrustdata/braintrust-sdk-python#860 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của braintrustdata/braintrust-sdk-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
RedHatQE/mtv-api-tests#721 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
pytest-dev/pluggy#757 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
NousResearch/hermes-agent#134960 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
HTML backend: `<br>` leaks the internal sentinel U+E000 into list items, headings and captionsCó thể đã có người làm @morten-lagabote đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
docling-project/docling#4671 ·
Maintainer thường phản hồi trong vòng 1 ngày