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: use id instead of step id for metrics (#4489)

cthomas7d85742f2296
diff --git a/letta/agents/letta_agent_v2.py b/letta/agents/letta_agent_v2.py
index 96f8e8739..4ecc26729 100644
--- a/letta/agents/letta_agent_v2.py
+++ b/letta/agents/letta_agent_v2.py
@@ -779,7 +779,7 @@ class LettaAgentV2(BaseAgentV2):
if agent_step_span is not None:
agent_step_span.add_event(name="step_ms", attributes={"duration_ms": ns_to_ms(step_ns)})
agent_step_span.end()
- self._record_step_metrics(step_id=step_metrics.step_id, step_metrics=step_metrics)
+ self._record_step_metrics(step_id=step_metrics.id, step_metrics=step_metrics)
return StepProgression.FINISHED, step_metrics
def _update_global_usage_stats(self, step_usage_stats: LettaUsageStatistics):