From fac11bec2c3efe32a81a134d11cb52502a80e286 Mon Sep 17 00:00:00 2001 From: cthomas Date: Thu, 31 Jul 2025 16:11:23 -0700 Subject: [PATCH] fix: voice endpoint null check (#3690) --- letta/services/helpers/agent_manager_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/services/helpers/agent_manager_helper.py b/letta/services/helpers/agent_manager_helper.py index 62fd1de1..78d0ba69 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)" )