<|SECTION:EXAMPLE|>
{% if data_format_type() == "json" %}
{
    "characters": {
        # the character name is the key
        "Character name": {
            "emotion": "The current emotional state or mood of the character. (neutral, happy, sad, angry, etc.)",
            "snapshot": "A brief narrative description of what the character is doing at this moment in the scene."
        },
        # ...
    },
    "items": {
        # the item name is the key in natural language (short)
        "Item name": {
            "snapshot": "A brief narrative description of the item and the state its currently in."
        },
        # ...
    },
    "location": "A brief narrative description of the location the scene is taking place in.",
}
{% else %}
```yaml
characters:
  # the character name is the key
  Character name:
    emotion: The current emotional state or mood of the character. (neutral, happy, sad, angry, etc.)
    snapshot: A brief narrative description of what the character is doing at this moment in the scene.
  # ...
items:
  # the item name is the key in natural language (short)
  Item name:
    snapshot: A brief narrative description of the item and the state its currently in.
location: A brief narrative description of the location the scene is taking place in.
```
{% endif %}
<|CLOSE_SECTION|>
<|SECTION:CONTEXT|>
Player character: {{ scene.get_player_character().name }}
Other major characters:
{% for npc_name in scene.npc_character_names -%}
{{ npc_name }}
{% endfor -%}

{% set scene_history=scene.context_history(budget=1000) %}
{% set final_line_number=len(scene_history) %}
{% for scene_context in scene_history -%}
Line {{ loop.index }}: {{ scene_context }}
{% endfor -%}
{% if not scene.history -%}
<|SECTION:DIALOGUE|>
No dialogue so far
{% endif -%}
<|CLOSE_SECTION|>
<|SECTION:TASK|>
Create {{ data_format_type() }} data for the world state that reflects the scene progression so far.

The world state needs to include important concrete and material items present in the scene during line {{ final_line_number }}.
The world state needs to include persons (characters) interacting during line {{ final_line_number }}.
What are the present characters doing during line {{ final_line_number }}?
Be factual and truthful. Don't make up things that are not in the context or dialogue.
Snapshot text should always be specified. If you don't know what to write, write "You see nothing special."
Emotion should always be specified. If you don't know what to write, write "neutral".

Respect the scene progression and answer in the context of line {{ final_line_number }}.

Required response: a complete and valid {{ data_format_type() }} response according to the {{ data_format_type() }} example containing items and characters.

characters should have the following attributes: `emotion`, `snapshot`
items should have the following attributes: `snapshot`
item keys must be reader friendly, so "Item name" instead of "item_name".

Don't overthink it.

<|CLOSE_SECTION|>
<|SECTION:UPDATED WORLD STATE|>
{{ set_data_response(dict(characters={"name":{}}), cutoff=3) }}