Files
letta-server/letta/templates/summary_request_text.j2
2025-07-01 15:07:38 -07:00

20 lines
842 B
Django/Jinja
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% if retain_count == 0 %}
Youre a memory-recall helper for an AI that is about to forget all prior messages. Scan the conversation history and write crisp notes that capture any important facts or insights about the conversation history.
{% else %}
Youre a memory-recall helper for an AI that can only keep the last {{ retain_count }} messages. Scan the conversation history, focusing on messages about to drop out of that window, and write crisp notes that capture any important facts or insights about the human so they arent lost.
{% endif %}
{% if evicted_messages %}
(Older) Evicted Messages:
{% for item in evicted_messages %}
{{ item }}
{% endfor %}
{% endif %}
{% if retain_count > 0 and in_context_messages %}
(Newer) In-Context Messages:
{% for item in in_context_messages %}
{{ item }}
{% endfor %}
{% endif %}