diff --git a/letta/schemas/agent.py b/letta/schemas/agent.py index dc38eead..b7efb4e3 100644 --- a/letta/schemas/agent.py +++ b/letta/schemas/agent.py @@ -321,8 +321,7 @@ def get_prompt_template_for_agent_type(agent_type: Optional[AgentType] = None): return ( f"\n{{% if file_blocks %}}{FILE_MEMORY_EXISTS_MESSAGE}\n{{% else %}}{FILE_MEMORY_EMPTY_MESSAGE}{{% endif %}}" "{% for block in file_blocks %}" - f"\n" - "<{{ block.label }}>\n" + f"\n" "\n" "{{ block.description }}\n" "\n" @@ -334,7 +333,6 @@ def get_prompt_template_for_agent_type(agent_type: Optional[AgentType] = None): "\n" "{{ block.value }}\n" "\n" - "\n" "\n" "{% if not loop.last %}\n{% endif %}" "{% endfor %}" @@ -374,8 +372,7 @@ def get_prompt_template_for_agent_type(agent_type: Optional[AgentType] = None): "{% endif %}" f"\n\n\n{{% if file_blocks %}}{FILE_MEMORY_EXISTS_MESSAGE}\n{{% else %}}{FILE_MEMORY_EMPTY_MESSAGE}{{% endif %}}" "{% for block in file_blocks %}" - f"\n" - "<{{ block.label }}>\n" + f"\n" "{% if block.description %}" "\n" "{{ block.description }}\n" @@ -391,7 +388,6 @@ def get_prompt_template_for_agent_type(agent_type: Optional[AgentType] = None): "{{ block.value }}\n" "\n" "{% endif %}" - "\n" "\n" "{% if not loop.last %}\n{% endif %}" "{% endfor %}" @@ -427,13 +423,7 @@ def get_prompt_template_for_agent_type(agent_type: Optional[AgentType] = None): "{% endif %}" f"\n\n\n{{% if file_blocks %}}{FILE_MEMORY_EXISTS_MESSAGE}\n{{% else %}}{FILE_MEMORY_EMPTY_MESSAGE}{{% endif %}}" "{% for block in file_blocks %}" - f"\n" - "<{{ block.label }}>\n" - "{% if block.description %}" - "\n" - "{{ block.description }}\n" - "\n" - "{% endif %}" + f"\n" "" "{% if block.read_only %}\n- read_only=true{% endif %}\n" "- chars_current={{ block.value|length }}\n" @@ -444,7 +434,6 @@ def get_prompt_template_for_agent_type(agent_type: Optional[AgentType] = None): "{{ block.value }}\n" "\n" "{% endif %}" - "\n" "\n" "{% if not loop.last %}\n{% endif %}" "{% endfor %}" diff --git a/tests/helpers/utils.py b/tests/helpers/utils.py index 2a7ec229..82abb3a7 100644 --- a/tests/helpers/utils.py +++ b/tests/helpers/utils.py @@ -238,7 +238,7 @@ def validate_context_window_overview( # 16. Check attached file is visible if attached_file: assert attached_file.visible_content in overview.core_memory - assert '' in overview.core_memory + assert '" in overview.core_memory # Check for tools