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 540c798
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(server-utils): Record LangChain TypeSafeClassifier runs as gen_ai.evaluate spans (#25120)
## What
`TypeSafeClassifier` runs from `@langchain/typesafe` now show up as
`gen_ai.evaluate` spans with model, provider, token usage, and the
state, questions and answers when gen_ai recording is on.
- Standalone `classifier.invoke()` calls are traced automatically.
- Calls from inside agents (for example the TypeSafe model router and
auto-mode middleware) are traced too.
## Why
The classifier calls Jev with `fetch` directly, so the TypeSafe
integration did not see it, and LangChain reported it as a generic
`invoke_agent` span without any evaluation data.
Closes: #24859
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Charly Gomez <[email protected]>
0 commit comments