Flatten D&D module prompt asset trees

This commit is contained in:
2026-07-06 01:27:02 +00:00
parent aee48d011e
commit 5b1efc89f6
12 changed files with 370 additions and 12 deletions

View File

@@ -0,0 +1,33 @@
id: dnd.spells
version: "v1"
default_profile: gemini-2-flash
inputs:
- name: transcript
required: true
content_type: application/json
- name: roster
required: false
content_type: text/plain
- name: glossary
required: false
content_type: text/plain
messages:
- role: system
content_file: ./common-dnd-system.md
- role: user
content_file: ./common-dnd-transcript.md
cache_control:
type: ephemeral
- role: user
content_file: ./common-dnd-references.md
cache_control:
type: ephemeral
- role: user
content_file: ./dnd/spells/task.md
- role: user
content_file: ./dnd/spells/instructions.md
output:
format: json
validation_mode: json_schema
schema_path: dnd_spells.v1.json
repair_attempts: 0

View File

@@ -0,0 +1,11 @@
Source references must use the source-unit IDs exactly as provided.
Return only D&D spell-cast artifacts. For each spell cast, identify the in-world
caster, spell name, effect, narrative description, and source references using
source_id, start_unit_id, and end_unit_id.
Use roster and glossary reference material only to clarify source text. Do not
return spells, casters, or effects that are mentioned only in reference
material.
Return exactly one JSON object and no explanatory text.

View File

@@ -0,0 +1,5 @@
Extract Dungeons & Dragons spell-cast artifacts from the provided transcript.
Extract only spell casts that are supported by the transcript. Do not infer
spells from general D&D knowledge or from table chatter that does not identify a
spell being cast.