From 5e0022eed7ffa17edb741b679c805bc9d5dc7a6b Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Thu, 2 Jul 2026 21:09:32 -0500 Subject: [PATCH] Add session_id support to all dnd pipeline prompts --- .../character_meta_analysis.yml | 22 +++++++++++-------- .../analyze/common/previous_recap.user.md | 3 +++ .../analyze/common/transcript.user.md | 3 +++ .../analyze/deranged_rumors/rumors.yml | 1 + .../analyze/hostile_rumors/rumors.yml | 1 + .../analyze/scene_map/scene_map.yml | 7 +++--- .../analyze/session_recap/recap.yml | 22 +++++++++++-------- prompts/pipeline-dnd/trim/bounds.yml | 3 ++- 8 files changed, 39 insertions(+), 23 deletions(-) create mode 100644 prompts/pipeline-dnd/analyze/common/previous_recap.user.md create mode 100644 prompts/pipeline-dnd/analyze/common/transcript.user.md diff --git a/prompts/pipeline-dnd/analyze/character_meta_analysis/character_meta_analysis.yml b/prompts/pipeline-dnd/analyze/character_meta_analysis/character_meta_analysis.yml index e6377c3..2781035 100644 --- a/prompts/pipeline-dnd/analyze/character_meta_analysis/character_meta_analysis.yml +++ b/prompts/pipeline-dnd/analyze/character_meta_analysis/character_meta_analysis.yml @@ -1,6 +1,7 @@ id: dnd.character_meta_analysis version: "2.0.0" -default_profile: claude-opus-latest +default_profile: claude-fable-latest +session_id: "{{ .session_id }}" description: D&D character meta analysis prompt. inputs: - name: transcript @@ -14,16 +15,19 @@ inputs: messages: - role: system content_file: ../common/transcript.system.md + cache_control: + type: ephemeral + ttl: 1h - role: user - content: | - <<>> + content_file: ../common/transcript.user.md + cache_control: + type: ephemeral + ttl: 1h - role: user - content: | - <<>> + content_file: ../common/transcript.previous_recap.md + cache_control: + type: ephemeral + ttl: 1h - role: user content_file: ./character_meta_analysis.task.md - role: user diff --git a/prompts/pipeline-dnd/analyze/common/previous_recap.user.md b/prompts/pipeline-dnd/analyze/common/previous_recap.user.md new file mode 100644 index 0000000..3c864b3 --- /dev/null +++ b/prompts/pipeline-dnd/analyze/common/previous_recap.user.md @@ -0,0 +1,3 @@ +An in-universe recap of the previous Dungeons & Dragons gameplay session is provided below. + +{{ input "recap" }} \ No newline at end of file diff --git a/prompts/pipeline-dnd/analyze/common/transcript.user.md b/prompts/pipeline-dnd/analyze/common/transcript.user.md new file mode 100644 index 0000000..5fb37f3 --- /dev/null +++ b/prompts/pipeline-dnd/analyze/common/transcript.user.md @@ -0,0 +1,3 @@ +A transcript of a Dungeons & Dragons gameplay session is provided below. + +{{ input "transcript" }} \ No newline at end of file diff --git a/prompts/pipeline-dnd/analyze/deranged_rumors/rumors.yml b/prompts/pipeline-dnd/analyze/deranged_rumors/rumors.yml index 690ef5a..3fea12f 100644 --- a/prompts/pipeline-dnd/analyze/deranged_rumors/rumors.yml +++ b/prompts/pipeline-dnd/analyze/deranged_rumors/rumors.yml @@ -1,6 +1,7 @@ id: dnd.deranged_rumors version: "1.0.0" default_profile: aion-2 +session_id: "{{ .session_id }}" description: D&D session rumor sheet, completely deranged and unhinged, for the amusement of the players. inputs: - name: recap diff --git a/prompts/pipeline-dnd/analyze/hostile_rumors/rumors.yml b/prompts/pipeline-dnd/analyze/hostile_rumors/rumors.yml index e3f0e66..4b8d91a 100644 --- a/prompts/pipeline-dnd/analyze/hostile_rumors/rumors.yml +++ b/prompts/pipeline-dnd/analyze/hostile_rumors/rumors.yml @@ -1,6 +1,7 @@ id: dnd.hostile_rumors version: "1.0.0" default_profile: aion-2 +session_id: "{{ .session_id }}" description: D&D session rumor sheet inputs: - name: recap diff --git a/prompts/pipeline-dnd/analyze/scene_map/scene_map.yml b/prompts/pipeline-dnd/analyze/scene_map/scene_map.yml index e1124fa..c067140 100644 --- a/prompts/pipeline-dnd/analyze/scene_map/scene_map.yml +++ b/prompts/pipeline-dnd/analyze/scene_map/scene_map.yml @@ -12,13 +12,12 @@ messages: content_file: ../common/transcript.system.md cache_control: type: ephemeral + ttl: 1h - role: user - content: | - <<>> + content_file: ../common/transcript.user.md cache_control: type: ephemeral + ttl: 1h - role: user content_file: ./scene_map.task.md - role: user diff --git a/prompts/pipeline-dnd/analyze/session_recap/recap.yml b/prompts/pipeline-dnd/analyze/session_recap/recap.yml index 9e0289d..b46a38e 100644 --- a/prompts/pipeline-dnd/analyze/session_recap/recap.yml +++ b/prompts/pipeline-dnd/analyze/session_recap/recap.yml @@ -1,6 +1,7 @@ id: dnd.session_recap version: "2.0.0" -default_profile: claude-opus-latest +default_profile: claude-fable-latest +session_id: "{{ .session_id }}" description: D&D session recap prompt. inputs: - name: transcript @@ -14,16 +15,19 @@ inputs: messages: - role: system content_file: ../common/transcript.system.md + cache_control: + type: ephemeral + ttl: 1h - role: user - content: | - <<>> + content_file: ../common/transcript.user.md + cache_control: + type: ephemeral + ttl: 1h - role: user - content: | - <<>> + content_file: ../common/transcript.previous_recap.md + cache_control: + type: ephemeral + ttl: 1h - role: user content_file: ./recap.task.md - role: user diff --git a/prompts/pipeline-dnd/trim/bounds.yml b/prompts/pipeline-dnd/trim/bounds.yml index 7ccfb47..2d4f2d9 100644 --- a/prompts/pipeline-dnd/trim/bounds.yml +++ b/prompts/pipeline-dnd/trim/bounds.yml @@ -1,6 +1,7 @@ id: dnd.session_bounds version: "2.0.0" default_profile: gemini-flash-latest +session_id: "{{ .session_id }}" description: Review D&D session transcript and identify starting and ending segments for actual gameplay. inputs: - name: transcript @@ -14,7 +15,7 @@ messages: content_file: ./bounds.user.md - role: user content: | - {{input "transcript"}} + {{ input "transcript" }} output: format: json validation_mode: json_schema