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.

feat: remove initial boot messages for sleeptime agent (#1622)

cthomas694741994680
diff --git a/letta/services/helpers/agent_manager_helper.py b/letta/services/helpers/agent_manager_helper.py
index fad526d8c..33f52dc7e 100644
--- a/letta/services/helpers/agent_manager_helper.py
+++ b/letta/services/helpers/agent_manager_helper.py
@@ -238,7 +238,9 @@ def initialize_message_sequence(
first_user_message = get_login_event() # event letting Letta know the user just logged in
if include_initial_boot_message:
- if agent_state.llm_config.model is not None and "gpt-3.5" in agent_state.llm_config.model:
+ if agent_state.agent_type == AgentType.sleeptime_agent:
+ initial_boot_messages = []
+ elif agent_state.llm_config.model is not None and "gpt-3.5" in agent_state.llm_config.model:
initial_boot_messages = get_initial_boot_messages("startup_with_send_message_gpt35")
else:
initial_boot_messages = get_initial_boot_messages("startup_with_send_message")