From e61baa6a5a3f32a8e07d82dd631d7092691d5b96 Mon Sep 17 00:00:00 2001 From: vegu-ai-tools <152010387+vegu-ai-tools@users.noreply.github.com> Date: Fri, 26 Sep 2025 19:26:50 +0300 Subject: [PATCH] narrate time action now has access to response length instructions --- src/talemate/agents/narrator/__init__.py | 1 + .../prompts/templates/narrator/narrate-time-passage.jinja2 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/talemate/agents/narrator/__init__.py b/src/talemate/agents/narrator/__init__.py index 6d0e8910..55efae3c 100644 --- a/src/talemate/agents/narrator/__init__.py +++ b/src/talemate/agents/narrator/__init__.py @@ -536,6 +536,7 @@ class NarratorAgent(MemoryRAGMixin, Agent): "narrative": narrative_direction, # backwards compatibility "narrative_direction": narrative_direction, "extra_instructions": self.extra_instructions, + "response_length": self.max_generation_length, }, ) diff --git a/src/talemate/prompts/templates/narrator/narrate-time-passage.jinja2 b/src/talemate/prompts/templates/narrator/narrate-time-passage.jinja2 index 95799723..8e8d94f4 100644 --- a/src/talemate/prompts/templates/narrator/narrate-time-passage.jinja2 +++ b/src/talemate/prompts/templates/narrator/narrate-time-passage.jinja2 @@ -4,9 +4,10 @@ {% set budget=max_tokens-300-extra_context_tokens %} {% with budget=budget %}{% include "scene-context.jinja2" %}{% endwith %} <|SECTION:TASK|> -Narrate the passage of time that just occured, subtly move the story forward, and set up the next scene. Your main goal is to fill in what happened during the time passage. +Narrate the passage of time that just occured, move the story forward, and set up the next scene. Your main goal is to fill in what happened during the time passage. {% include "narrative-direction.jinja2" %} {{ extra_instructions }} +{% include "response-length.jinja2" %} <|CLOSE_SECTION|> {{ bot_token }}{{ time_passed }}: \ No newline at end of file