Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(llma): import Sequence for langchain field annotation resolution (#68537)

posthog[bot]39f424db1874
diff --git a/ee/hogai/llm.py b/ee/hogai/llm.py
index b5c77567a3dd..5cfb7baa68dc 100644
--- a/ee/hogai/llm.py
+++ b/ee/hogai/llm.py
@@ -1,5 +1,8 @@
import datetime
-from collections.abc import Mapping
+from collections.abc import ( # noqa: F401 — Sequence resolves inherited langchain field annotations lazily in this namespace
+ Mapping,
+ Sequence,
+)
from functools import cached_property
from typing import Any, cast