The LettaAgentV3 (and LettaAgentV2) agents inherit from BaseAgentV2, which unlike the original BaseAgent class, did not expose an agent_id attribute. This caused AttributeError: 'LettaAgentV3' object has no attribute 'agent_id' when code attempted to access self.agent_id. This fix adds an agent_id property to BaseAgentV2 that returns self.agent_state.id, maintaining backward compatibility with code that expects the self.agent_id interface from the original BaseAgent. Closes #8805 🤖 Generated with [Letta Code](https://letta.com) Co-authored-by: letta-code <248085862+letta-code@users.noreply.github.com> Co-authored-by: Letta <noreply@letta.com>
3.6 KiB
3.6 KiB