Skip to content

feat(pydantic-ai): capture web-search usage details - #892

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/capture-search-counts-0208cc90
Oct 8, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi/capture-search-counts-0208cc90

Conversation

@AbhiPrasad

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Oct 8, 2026 •

Copy link
Copy Markdown
Member
  • Preserve RequestUsage.details["web_search_requests"] under metadata.pydantic_ai_usage so OpenAI web-search and Google grounding counts appear on traced calls.
  • Add cassette-backed coverage for a native OpenAI web-search run.

Closes #866.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T16:46:11.728746Z 74900aa Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title fix(pydantic-ai): capture web-search usage details feat(pydantic-ai): capture web-search usage details Oct 8, 2026
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 7af2443 into main Oct 8, 2026
83 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/capture-search-counts-0208cc90 branch October 8, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant