@posthog/ai
8.22.0 · 20 Nov 2026MIT1.9M / weekRepositoryHomepagenpmAtom feed
8.22.0 is the newest release of 8.x.
In short
1 new1 fixed
Release note
Minor Changes
The OpenAI Agents SDK
groupIdnow also maps to$ai_session_idon$ai_traceand span events, so grouped runs show up as sessions in PostHog AI observability.$ai_group_idis still emitted alongside it.
(2026-07-30)
Patch Changes
Fix LangChain spans being named after their class instead of the runnable. LangChain passes
runNameas a bare string, which the name resolver skipped because it only inspected object arguments, so every tool span was captured asDynamicStructuredToolrather than the tool's own name.
(2026-07-30)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.