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: voice endpoint null check (#3690)

cthomasfac11bec2c3e
diff --git a/letta/services/helpers/agent_manager_helper.py b/letta/services/helpers/agent_manager_helper.py
index 62fd1de18..78d0ba698 100644
--- a/letta/services/helpers/agent_manager_helper.py
+++ b/letta/services/helpers/agent_manager_helper.py
@@ -217,7 +217,7 @@ def compile_memory_metadata_block(
]
# Only include archival memory line if there are archival memories
- if archival_memory_size > 0:
+ if archival_memory_size is not None and archival_memory_size > 0:
metadata_lines.append(
f"- {archival_memory_size} total memories you created are stored in archival memory (use tools to access them)"
)