Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: add llm adapter to build request method (#4493)

cthomas517e25ea2ab3
diff --git a/letta/agents/letta_agent_v2.py b/letta/agents/letta_agent_v2.py
index e76e04e2c..79081e91e 100644
--- a/letta/agents/letta_agent_v2.py
+++ b/letta/agents/letta_agent_v2.py
@@ -137,6 +137,7 @@ class LettaAgentV2(BaseAgentV2):
)
response = self._step(
messages=in_context_messages + input_messages_to_persist,
+ llm_adapter=LettaLLMRequestAdapter(llm_client=self.llm_client, llm_config=self.agent_state.llm_config),
dry_run=True,
)
async for chunk in response: