From e8a565a384da84d8a044361d94d540d1038b436a Mon Sep 17 00:00:00 2001 From: cthomas Date: Tue, 3 Feb 2026 13:18:17 -0800 Subject: [PATCH] fix: add missing call_type to stream adapter ProviderTrace (#9259) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both letta_llm_stream_adapter and simple_llm_stream_adapter were creating ProviderTrace without call_type, causing "unknown" in ClickHouse analytics. 🤖 Generated with [Letta Code](https://letta.com) Co-authored-by: Letta --- letta/adapters/letta_llm_stream_adapter.py | 1 + letta/adapters/simple_llm_stream_adapter.py | 1 + 2 files changed, 2 insertions(+) diff --git a/letta/adapters/letta_llm_stream_adapter.py b/letta/adapters/letta_llm_stream_adapter.py index 986d5244..b2ea94be 100644 --- a/letta/adapters/letta_llm_stream_adapter.py +++ b/letta/adapters/letta_llm_stream_adapter.py @@ -205,6 +205,7 @@ class LettaLLMStreamAdapter(LettaLLMAdapter): agent_id=self.agent_id, agent_tags=self.agent_tags, run_id=self.run_id, + call_type="agent_step", org_id=self.org_id, user_id=self.user_id, llm_config=self.llm_config.model_dump() if self.llm_config else None, diff --git a/letta/adapters/simple_llm_stream_adapter.py b/letta/adapters/simple_llm_stream_adapter.py index 440f1994..e29b8ac9 100644 --- a/letta/adapters/simple_llm_stream_adapter.py +++ b/letta/adapters/simple_llm_stream_adapter.py @@ -254,6 +254,7 @@ class SimpleLLMStreamAdapter(LettaLLMStreamAdapter): agent_id=self.agent_id, agent_tags=self.agent_tags, run_id=self.run_id, + call_type="agent_step", org_id=self.org_id, user_id=self.user_id, llm_config=self.llm_config.model_dump() if self.llm_config else None,