Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Update `save_agent` to also save the per-agent environment variables (#519)
Matthew Zhouabe351df88bf
diff --git a/letta/agent.py b/letta/agent.pyindex 483d3cb81..4c1bc4e0c 100644--- a/letta/agent.py+++ b/letta/agent.py@@ -1075,6 +1075,7 @@ def save_agent(agent: Agent):message_ids=agent_state.message_ids,description=agent_state.description,metadata_=agent_state.metadata_,+ tool_exec_environment_variables=agent_state.get_agent_env_vars_as_dict(),)agent_manager.update_agent(agent_id=agent_state.id, agent_update=update_agent, actor=agent.user)