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: ignore persisted e2b template (#5890)

Sarah Wooders427ac0c5a28d
diff --git a/letta/schemas/sandbox_config.py b/letta/schemas/sandbox_config.py
index 045b892d0..ef2827702 100644
--- a/letta/schemas/sandbox_config.py
+++ b/letta/schemas/sandbox_config.py
@@ -102,7 +102,9 @@ class SandboxConfig(SandboxConfigBase):
config: Dict = Field(default_factory=lambda: {}, description="The JSON sandbox settings data.")
def get_e2b_config(self) -> E2BSandboxConfig:
- return E2BSandboxConfig(**self.config)
+ config_dict = self.config.copy()
+ config_dict["template"] = tool_settings.e2b_sandbox_template_id
+ return E2BSandboxConfig(**config_dict)
def get_local_config(self) -> LocalSandboxConfig:
return LocalSandboxConfig(**self.config)