{% block rendered_context -%}
{% include "extra-context.jinja2" %}
<|SECTION:CONTEXT|>
{{ character.sheet }}

{{ character.description }}

<|CLOSE_SECTION|>
{% endblock -%}
<|SECTION:SCENE|>
{% for scene_context in scene.context_history(budget=max_tokens-300-count_tokens(self.rendered_context())) -%}
{{ scene_context }}
{% endfor %}
<|CLOSE_SECTION|>

<|SECTION:TASK|>
Narrate the exit of {{ character.name }} from the scene:{% if direction %} {{ direction }}{% else %}Make a creative decision on how {{ character.name }} leaves the scene. It must be in line with the content so far.{% endif %}
{{ extra_instructions }}
{% include "rerun-context.jinja2" -%}
<|CLOSE_SECTION|>