Migrate scene descriptions to native correction with invariant-preserving final fallbacks
This commit is contained in:
7
assets/dnd/scene-descriptions/prompts/correction.md
Normal file
7
assets/dnd/scene-descriptions/prompts/correction.md
Normal file
@@ -0,0 +1,7 @@
|
||||
Revise the previous scene description using these findings:
|
||||
|
||||
{{ input "guidance" }}
|
||||
|
||||
Return one complete replacement kind, title, and summary for the original
|
||||
transcript chunk. Do not change its boundary or invent details to justify a
|
||||
classification. Return only JSON matching the original response contract.
|
||||
@@ -17,7 +17,7 @@ prompts:
|
||||
messages:
|
||||
- role: system
|
||||
content_file: ../../shared/prompts/common-dnd-system.md
|
||||
- role: user
|
||||
- role: system
|
||||
content_file: ../../shared/prompts/common-dnd-identity.md
|
||||
- role: user
|
||||
content_file: ../../shared/prompts/common-dnd-references.md
|
||||
@@ -27,9 +27,9 @@ prompts:
|
||||
content_file: ../../shared/prompts/common-dnd-transcript-chunk.md
|
||||
cache_control:
|
||||
type: ephemeral
|
||||
- role: user
|
||||
- role: system
|
||||
content_file: ../../shared/prompts/common-dnd-scene-combat-policy.md
|
||||
- role: user
|
||||
- role: system
|
||||
content_file: ./instructions.md
|
||||
cache_control:
|
||||
type: ephemeral
|
||||
@@ -37,3 +37,17 @@ prompts:
|
||||
format: json
|
||||
validation_mode: json_schema
|
||||
schema_path: dnd/scene-descriptions/schemas/dnd_scene_descriptions_llm.v1.json
|
||||
|
||||
- id: dnd.scene_descriptions.repair
|
||||
default_profile: notarius/dnd-extraction
|
||||
inputs:
|
||||
- name: guidance
|
||||
required: true
|
||||
content_type: text/plain
|
||||
messages:
|
||||
- role: user
|
||||
content_file: ./correction.md
|
||||
output:
|
||||
format: json
|
||||
validation_mode: json_schema
|
||||
schema_path: dnd/scene-descriptions/schemas/dnd_scene_descriptions_llm.v1.json
|
||||
|
||||
Reference in New Issue
Block a user