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 agent_id property to BaseAgentV2 for backward compatibility (#8806)

github-actions[bot]9471fab2cf97
diff --git a/letta/agents/base_agent_v2.py b/letta/agents/base_agent_v2.py
index df45b1763..b6fe89cef 100644
--- a/letta/agents/base_agent_v2.py
+++ b/letta/agents/base_agent_v2.py
@@ -25,6 +25,11 @@ class BaseAgentV2(ABC):
self.actor = actor
self.logger = get_logger(agent_state.id)
+ @property
+ def agent_id(self) -> str:
+ """Return the agent ID for backward compatibility with code expecting self.agent_id."""
+ return self.agent_state.id
+
@abstractmethod
async def build_request(
self,