Migrate PromptKit definition assets to keyed format

This commit is contained in:
2026-10-04 11:48:45 +00:00
parent f5b066beee
commit ea403c8094
19 changed files with 647 additions and 627 deletions

View File

@@ -1,7 +1,8 @@
id: dnd.combat_turns prompts:
version: "v1" dnd.combat_turns:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -17,7 +18,7 @@ inputs:
- name: npc_registry - name: npc_registry
required: false required: false
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -38,7 +39,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_combat_turns_llm.v1.json schema_path: dnd_combat_turns_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.enemy_events prompts:
version: "v1" dnd.enemy_events:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -23,7 +24,7 @@ inputs:
- name: npc_occurrences - name: npc_occurrences
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -46,7 +47,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_enemy_events_llm.v1.json schema_path: dnd_enemy_events_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.item_occurrences prompts:
version: "v1" dnd.item_occurrences:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -17,7 +18,7 @@ inputs:
- name: item_registry - name: item_registry
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -38,7 +39,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_item_occurrences_llm.v1.json schema_path: dnd_item_occurrences_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.item_registry prompts:
version: "v1" dnd.item_registry:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -14,7 +15,7 @@ inputs:
- name: glossary - name: glossary
required: false required: false
content_type: text/plain content_type: text/plain
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -33,7 +34,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_item_registry_llm.v1.json schema_path: dnd_item_registry_llm.v1.json

View File

@@ -1,14 +1,15 @@
id: dnd.item_registry.normalize prompts:
version: "v1" dnd.item_registry.normalize:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: candidates - name: candidates
required: true required: true
content_type: application/json content_type: application/json
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -23,7 +24,7 @@ messages:
content_file: ./sharedassets/transcript-windows.md content_file: ./sharedassets/transcript-windows.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: semantic_reconciliation_llm.v1.json schema_path: semantic_reconciliation_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.location_occurrences prompts:
version: "v1" dnd.location_occurrences:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -17,7 +18,7 @@ inputs:
- name: location_registry - name: location_registry
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -38,7 +39,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_location_occurrences_llm.v1.json schema_path: dnd_location_occurrences_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.location_registry prompts:
version: "v1" dnd.location_registry:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -14,7 +15,7 @@ inputs:
- name: glossary - name: glossary
required: false required: false
content_type: text/plain content_type: text/plain
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -33,7 +34,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_location_registry_llm.v1.json schema_path: dnd_location_registry_llm.v1.json

View File

@@ -1,14 +1,15 @@
id: dnd.location_registry.normalize prompts:
version: "v1" dnd.location_registry.normalize:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: candidates - name: candidates
required: true required: true
content_type: application/json content_type: application/json
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -23,7 +24,7 @@ messages:
content_file: ./sharedassets/transcript-windows.md content_file: ./sharedassets/transcript-windows.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: semantic_reconciliation_llm.v1.json schema_path: semantic_reconciliation_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.npc_occurrences prompts:
version: "v1" dnd.npc_occurrences:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -17,7 +18,7 @@ inputs:
- name: npc_registry - name: npc_registry
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -38,7 +39,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_npc_occurrences_llm.v1.json schema_path: dnd_npc_occurrences_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.npc_registry prompts:
version: "v1" dnd.npc_registry:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -14,7 +15,7 @@ inputs:
- name: glossary - name: glossary
required: false required: false
content_type: text/plain content_type: text/plain
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -33,7 +34,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_npc_registry_llm.v1.json schema_path: dnd_npc_registry_llm.v1.json

View File

@@ -1,14 +1,15 @@
id: dnd.npc_registry.normalize prompts:
version: "v1" dnd.npc_registry.normalize:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: candidates - name: candidates
required: true required: true
content_type: application/json content_type: application/json
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -23,7 +24,7 @@ messages:
content_file: ./sharedassets/transcript-windows.md content_file: ./sharedassets/transcript-windows.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: semantic_reconciliation_llm.v1.json schema_path: semantic_reconciliation_llm.v1.json

View File

@@ -1,5 +1,6 @@
id: dnd-extraction profiles:
backend: openrouter dnd-extraction:
model: openai/gpt-5.6-luna backend: openrouter
timeout_seconds: 240 model: openai/gpt-5.6-luna
service_tier: flex timeout_seconds: 240
service_tier: flex

View File

@@ -1,7 +1,8 @@
id: dnd.scene_descriptions prompts:
version: "v1" dnd.scene_descriptions:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -14,7 +15,7 @@ inputs:
- name: glossary - name: glossary
required: false required: false
content_type: text/plain content_type: text/plain
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -33,7 +34,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_scene_descriptions_llm.v1.json schema_path: dnd_scene_descriptions_llm.v1.json

View File

@@ -1,11 +1,12 @@
id: dnd.scene_descriptions.validate_combat prompts:
version: "v1" dnd.scene_descriptions.validate_combat:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -16,7 +17,7 @@ messages:
content_file: ./sharedassets/common-dnd-transcript-chunk.md content_file: ./sharedassets/common-dnd-transcript-chunk.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_scene_combat_semantics_llm.v1.json schema_path: dnd_scene_combat_semantics_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.scenes prompts:
version: "v1" dnd.scenes:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -14,7 +15,7 @@ inputs:
- name: glossary - name: glossary
required: false required: false
content_type: text/plain content_type: text/plain
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -27,7 +28,7 @@ messages:
content_file: ./sharedassets/common-dnd-transcript-full.md content_file: ./sharedassets/common-dnd-transcript-full.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_scenes_llm.v1.json schema_path: dnd_scenes_llm.v1.json

View File

@@ -1,7 +1,8 @@
id: dnd.spells prompts:
version: "v1" dnd.spells:
default_profile: dnd-extraction v1:
inputs: default_profile: dnd-extraction
inputs:
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
@@ -20,7 +21,7 @@ inputs:
- name: npc_registry - name: npc_registry
required: false required: false
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./sharedassets/common-dnd-system.md content_file: ./sharedassets/common-dnd-system.md
- role: user - role: user
@@ -43,7 +44,7 @@ messages:
content_file: ./instructions.md content_file: ./instructions.md
cache_control: cache_control:
type: ephemeral type: ephemeral
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: dnd_spells_llm.v1.json schema_path: dnd_spells_llm.v1.json

View File

@@ -1,13 +1,14 @@
id: generic.semantic_reconciliation prompts:
version: "v1" generic.semantic_reconciliation:
inputs: v1:
inputs:
- name: candidates - name: candidates
required: true required: true
content_type: application/json content_type: application/json
- name: transcript - name: transcript
required: true required: true
content_type: application/json content_type: application/json
messages: messages:
- role: system - role: system
content_file: ./system.md content_file: ./system.md
- role: user - role: user
@@ -20,7 +21,7 @@ messages:
content_file: ./candidates.md content_file: ./candidates.md
- role: user - role: user
content_file: ./transcript-windows.md content_file: ./transcript-windows.md
output: output:
format: json format: json
validation_mode: json_schema validation_mode: json_schema
schema_path: semantic_reconciliation_llm.v1.json schema_path: semantic_reconciliation_llm.v1.json

View File

@@ -185,6 +185,8 @@ separate filesystem scan.
## Stage 1 — Migrate Embedded And Maintained Definition Assets ## Stage 1 — Migrate Embedded And Maintained Definition Assets
> Completion: complete.
Goal: convert data without rewriting prompt semantics. Goal: convert data without rewriting prompt semantics.
Inspect `assets/**/prompts/prompt.yaml`, Inspect `assets/**/prompts/prompt.yaml`,

View File

@@ -1,5 +1,6 @@
id: dnd-extraction profiles:
backend: openrouter dnd-extraction:
model: openai/gpt-5.6-luna backend: openrouter
timeout_seconds: 240 model: openai/gpt-5.6-luna
service_tier: flex timeout_seconds: 240
service_tier: flex