Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: Fix jinja template for files in memgpt_v2 (#3033)
Matthew Zhou3f63a70f2c86
diff --git a/letta/schemas/agent.py b/letta/schemas/agent.pyindex 799ca473f..e52bdee6e 100644--- a/letta/schemas/agent.py+++ b/letta/schemas/agent.py@@ -359,10 +359,7 @@ def get_prompt_template_for_agent_type(agent_type: Optional[AgentType] = None):"</metadata>\n""{% if block.value %}""<value>\n"- f"{CORE_MEMORY_LINE_NUMBER_WARNING}\n"- "{% for line in block.value.split('\\n') %}"- "{{ loop.index }}: {{ line }}\n"- "{% endfor %}"+ "{{ block.value }}\n""</value>\n""{% endif %}""</{{ block.label }}>\n"