fix: use id instead of step id for metrics (#4489)

This commit is contained in:
cthomas
2025-09-08 22:54:43 -07:00
committed by GitHub
parent 2aabb15e97
commit 4b9175afd3

View File

@@ -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):