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.

chore: clean up unused agent_id var (#2800)

cthomas455aa1da9986
diff --git a/letta/agents/letta_agent_v2.py b/letta/agents/letta_agent_v2.py
index 259f8c801..0461602b3 100644
--- a/letta/agents/letta_agent_v2.py
+++ b/letta/agents/letta_agent_v2.py
@@ -75,7 +75,6 @@ class LettaAgentV2(BaseAgentV2):
actor: User,
):
super().__init__(agent_state, actor)
- self.agent_id = agent_state.id # Store agent_id for compatibility
self.logger = get_logger(agent_state.id)
self.tool_rules_solver = ToolRulesSolver(tool_rules=agent_state.tool_rules)
self.llm_client = LLMClient.create(
@@ -1193,7 +1192,7 @@ class LettaAgentV2(BaseAgentV2):
return
try:
await self.agent_manager.update_agent_async(
- agent_id=self.agent_id,
+ agent_id=self.agent_state.id,
agent_update=UpdateAgent(last_run_completion=completion_time, last_run_duration_ms=duration_ms),
actor=self.actor,
)