Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: use no refresh in log_step_async (#3399)
cthomasa2e3ccddd1c7
diff --git a/letta/services/step_manager.py b/letta/services/step_manager.pyindex b95de67dd..c16af2fe3 100644--- a/letta/services/step_manager.py+++ b/letta/services/step_manager.py@@ -157,8 +157,10 @@ class StepManager:if job_id:await self._verify_job_access_async(session, job_id, actor, access=["write"])new_step = StepModel(**step_data)- await new_step.create_async(session)- return new_step.to_pydantic()+ await new_step.create_async(session, no_commit=True, no_refresh=True)+ pydantic_step = new_step.to_pydantic()+ await session.commit()+ return pydantic_step@enforce_types@trace_method