Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: hide keys in agent file (#1445)
Sarah Wooders4773059b5a40
diff --git a/letta/serialize_schemas/marshmallow_agent.py b/letta/serialize_schemas/marshmallow_agent.pyindex c4da1288b..309333abb 100644--- a/letta/serialize_schemas/marshmallow_agent.py+++ b/letta/serialize_schemas/marshmallow_agent.py@@ -87,6 +87,15 @@ class MarshmallowAgentSchema(BaseSchema):return data+ @post_dump+ def hide_tool_exec_environment_variables(self, data: Dict, **kwargs):+ """Hide the value of tool_exec_environment_variables"""++ for env_var in data.get("tool_exec_environment_variables", []):+ # need to be re-set at load time+ env_var["value"] = ""+ return data+@pre_loaddef check_version(self, data, **kwargs):"""Check version and remove it from the schema"""