You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b0a2b59
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(ai): record the Anthropic web search count in the LangChain callback handler (#1097)
* feat(ai): record the Anthropic web search count in the LangChain callback handler
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* chore: update public API snapshot for ModelUsage.web_search_count
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: regenerate LangChain ModelUsage API snapshot
* fix(ai): read the LangChain web search count from llm_output usage and omit zero
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Manoel Aranda Neto <marandaneto@gmail.com>
The LangChain callback handler now records `$ai_web_search_count` for Anthropic responses that report `server_tool_use.web_search_requests`, as the OpenAI, Anthropic and Gemini wrappers and `posthog-js` already do.
0 commit comments