From ea403c8094d8a516ddef263c3711167995b3805e Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 4 Oct 2026 11:48:45 +0000 Subject: [PATCH] Migrate PromptKit definition assets to keyed format --- assets/dnd/combat-turns/prompts/prompt.yaml | 91 +++++++-------- assets/dnd/enemy-events/prompts/prompt.yaml | 107 +++++++++--------- .../dnd/item-occurrences/prompts/prompt.yaml | 91 +++++++-------- .../item-registry/extract/prompts/prompt.yaml | 81 ++++++------- .../normalize/prompts/prompt.yaml | 61 +++++----- .../location-occurrences/prompts/prompt.yaml | 91 +++++++-------- .../extract/prompts/prompt.yaml | 81 ++++++------- .../normalize/prompts/prompt.yaml | 61 +++++----- .../dnd/npc-occurrences/prompts/prompt.yaml | 91 +++++++-------- .../npc-registry/extract/prompts/prompt.yaml | 81 ++++++------- .../normalize/prompts/prompt.yaml | 61 +++++----- assets/dnd/profiles/dnd-extraction.yaml | 11 +- .../scene-descriptions/prompts/prompt.yaml | 81 ++++++------- .../combat-semantics/prompts/prompt.yaml | 47 ++++---- assets/dnd/scenes/prompts/prompt.yaml | 69 +++++------ assets/dnd/spells/prompts/prompt.yaml | 101 +++++++++-------- .../deduplication/prompts/prompt.yaml | 55 ++++----- docs/roadmap/implementation.md | 2 + examples/llm-profiles/dnd-extraction.yml | 11 +- 19 files changed, 647 insertions(+), 627 deletions(-) diff --git a/assets/dnd/combat-turns/prompts/prompt.yaml b/assets/dnd/combat-turns/prompts/prompt.yaml index 5d906f0a..c230a5ba 100644 --- a/assets/dnd/combat-turns/prompts/prompt.yaml +++ b/assets/dnd/combat-turns/prompts/prompt.yaml @@ -1,45 +1,46 @@ -id: dnd.combat_turns -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain - - name: npc_registry - required: false - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./sharedassets/common-dnd-npc-registry.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_combat_turns_llm.v1.json - repair_attempts: 1 +prompts: + dnd.combat_turns: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + - name: npc_registry + required: false + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./sharedassets/common-dnd-npc-registry.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_combat_turns_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/enemy-events/prompts/prompt.yaml b/assets/dnd/enemy-events/prompts/prompt.yaml index 43465ba8..9314fe58 100644 --- a/assets/dnd/enemy-events/prompts/prompt.yaml +++ b/assets/dnd/enemy-events/prompts/prompt.yaml @@ -1,53 +1,54 @@ -id: dnd.enemy_events -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain - - name: npc_registry - required: true - content_type: application/json - - name: combat_turns - required: true - content_type: application/json - - name: npc_occurrences - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./sharedassets/common-dnd-npc-registry.md - - role: user - content_file: ./combat-grounding.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_enemy_events_llm.v1.json - repair_attempts: 1 +prompts: + dnd.enemy_events: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + - name: npc_registry + required: true + content_type: application/json + - name: combat_turns + required: true + content_type: application/json + - name: npc_occurrences + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./sharedassets/common-dnd-npc-registry.md + - role: user + content_file: ./combat-grounding.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_enemy_events_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/item-occurrences/prompts/prompt.yaml b/assets/dnd/item-occurrences/prompts/prompt.yaml index 7478db5c..b36840be 100644 --- a/assets/dnd/item-occurrences/prompts/prompt.yaml +++ b/assets/dnd/item-occurrences/prompts/prompt.yaml @@ -1,45 +1,46 @@ -id: dnd.item_occurrences -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain - - name: item_registry - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./item-registry.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_item_occurrences_llm.v1.json - repair_attempts: 1 +prompts: + dnd.item_occurrences: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + - name: item_registry + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./item-registry.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_item_occurrences_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/item-registry/extract/prompts/prompt.yaml b/assets/dnd/item-registry/extract/prompts/prompt.yaml index 67f40598..873c8217 100644 --- a/assets/dnd/item-registry/extract/prompts/prompt.yaml +++ b/assets/dnd/item-registry/extract/prompts/prompt.yaml @@ -1,40 +1,41 @@ -id: dnd.item_registry -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_item_registry_llm.v1.json - repair_attempts: 1 +prompts: + dnd.item_registry: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_item_registry_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/item-registry/normalize/prompts/prompt.yaml b/assets/dnd/item-registry/normalize/prompts/prompt.yaml index 02a5855f..1d95f859 100644 --- a/assets/dnd/item-registry/normalize/prompts/prompt.yaml +++ b/assets/dnd/item-registry/normalize/prompts/prompt.yaml @@ -1,30 +1,31 @@ -id: dnd.item_registry.normalize -version: "v1" -default_profile: dnd-extraction -inputs: - - name: candidates - required: true - content_type: application/json - - name: transcript - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/protocol.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/candidates.md - - role: user - content_file: ./sharedassets/transcript-windows.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: semantic_reconciliation_llm.v1.json - repair_attempts: 1 +prompts: + dnd.item_registry.normalize: + v1: + default_profile: dnd-extraction + inputs: + - name: candidates + required: true + content_type: application/json + - name: transcript + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/protocol.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/candidates.md + - role: user + content_file: ./sharedassets/transcript-windows.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: semantic_reconciliation_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/location-occurrences/prompts/prompt.yaml b/assets/dnd/location-occurrences/prompts/prompt.yaml index 92f28b2a..8d7bf9b5 100644 --- a/assets/dnd/location-occurrences/prompts/prompt.yaml +++ b/assets/dnd/location-occurrences/prompts/prompt.yaml @@ -1,45 +1,46 @@ -id: dnd.location_occurrences -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain - - name: location_registry - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./location-registry.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_location_occurrences_llm.v1.json - repair_attempts: 1 +prompts: + dnd.location_occurrences: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + - name: location_registry + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./location-registry.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_location_occurrences_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/location-registry/extract/prompts/prompt.yaml b/assets/dnd/location-registry/extract/prompts/prompt.yaml index 7d4d3dd3..92837de5 100644 --- a/assets/dnd/location-registry/extract/prompts/prompt.yaml +++ b/assets/dnd/location-registry/extract/prompts/prompt.yaml @@ -1,40 +1,41 @@ -id: dnd.location_registry -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_location_registry_llm.v1.json - repair_attempts: 1 +prompts: + dnd.location_registry: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_location_registry_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/location-registry/normalize/prompts/prompt.yaml b/assets/dnd/location-registry/normalize/prompts/prompt.yaml index 12ef271b..5811aa04 100644 --- a/assets/dnd/location-registry/normalize/prompts/prompt.yaml +++ b/assets/dnd/location-registry/normalize/prompts/prompt.yaml @@ -1,30 +1,31 @@ -id: dnd.location_registry.normalize -version: "v1" -default_profile: dnd-extraction -inputs: - - name: candidates - required: true - content_type: application/json - - name: transcript - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/protocol.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/candidates.md - - role: user - content_file: ./sharedassets/transcript-windows.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: semantic_reconciliation_llm.v1.json - repair_attempts: 1 +prompts: + dnd.location_registry.normalize: + v1: + default_profile: dnd-extraction + inputs: + - name: candidates + required: true + content_type: application/json + - name: transcript + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/protocol.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/candidates.md + - role: user + content_file: ./sharedassets/transcript-windows.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: semantic_reconciliation_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/npc-occurrences/prompts/prompt.yaml b/assets/dnd/npc-occurrences/prompts/prompt.yaml index f9a85d53..b1eaeff9 100644 --- a/assets/dnd/npc-occurrences/prompts/prompt.yaml +++ b/assets/dnd/npc-occurrences/prompts/prompt.yaml @@ -1,45 +1,46 @@ -id: dnd.npc_occurrences -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain - - name: npc_registry - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./sharedassets/common-dnd-npc-registry.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_npc_occurrences_llm.v1.json - repair_attempts: 1 +prompts: + dnd.npc_occurrences: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + - name: npc_registry + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./sharedassets/common-dnd-npc-registry.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_npc_occurrences_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/npc-registry/extract/prompts/prompt.yaml b/assets/dnd/npc-registry/extract/prompts/prompt.yaml index 1a9f071c..849140a2 100644 --- a/assets/dnd/npc-registry/extract/prompts/prompt.yaml +++ b/assets/dnd/npc-registry/extract/prompts/prompt.yaml @@ -1,40 +1,41 @@ -id: dnd.npc_registry -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_npc_registry_llm.v1.json - repair_attempts: 1 +prompts: + dnd.npc_registry: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_npc_registry_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/npc-registry/normalize/prompts/prompt.yaml b/assets/dnd/npc-registry/normalize/prompts/prompt.yaml index 0be55874..bd9f9cbc 100644 --- a/assets/dnd/npc-registry/normalize/prompts/prompt.yaml +++ b/assets/dnd/npc-registry/normalize/prompts/prompt.yaml @@ -1,30 +1,31 @@ -id: dnd.npc_registry.normalize -version: "v1" -default_profile: dnd-extraction -inputs: - - name: candidates - required: true - content_type: application/json - - name: transcript - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/protocol.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/candidates.md - - role: user - content_file: ./sharedassets/transcript-windows.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: semantic_reconciliation_llm.v1.json - repair_attempts: 1 +prompts: + dnd.npc_registry.normalize: + v1: + default_profile: dnd-extraction + inputs: + - name: candidates + required: true + content_type: application/json + - name: transcript + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/protocol.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/candidates.md + - role: user + content_file: ./sharedassets/transcript-windows.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: semantic_reconciliation_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/profiles/dnd-extraction.yaml b/assets/dnd/profiles/dnd-extraction.yaml index 18546a76..75e5c76a 100644 --- a/assets/dnd/profiles/dnd-extraction.yaml +++ b/assets/dnd/profiles/dnd-extraction.yaml @@ -1,5 +1,6 @@ -id: dnd-extraction -backend: openrouter -model: openai/gpt-5.6-luna -timeout_seconds: 240 -service_tier: flex +profiles: + dnd-extraction: + backend: openrouter + model: openai/gpt-5.6-luna + timeout_seconds: 240 + service_tier: flex diff --git a/assets/dnd/scene-descriptions/prompts/prompt.yaml b/assets/dnd/scene-descriptions/prompts/prompt.yaml index 6dd06fa8..df0272a7 100644 --- a/assets/dnd/scene-descriptions/prompts/prompt.yaml +++ b/assets/dnd/scene-descriptions/prompts/prompt.yaml @@ -1,40 +1,41 @@ -id: dnd.scene_descriptions -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-scene-combat-policy.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_scene_descriptions_llm.v1.json - repair_attempts: 1 +prompts: + dnd.scene_descriptions: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-scene-combat-policy.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_scene_descriptions_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/scene-descriptions/validate/combat-semantics/prompts/prompt.yaml b/assets/dnd/scene-descriptions/validate/combat-semantics/prompts/prompt.yaml index c5e25385..a59b1fe9 100644 --- a/assets/dnd/scene-descriptions/validate/combat-semantics/prompts/prompt.yaml +++ b/assets/dnd/scene-descriptions/validate/combat-semantics/prompts/prompt.yaml @@ -1,23 +1,24 @@ -id: dnd.scene_descriptions.validate_combat -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-scene-combat-policy.md - - role: user - content_file: ./instructions.md - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_scene_combat_semantics_llm.v1.json - repair_attempts: 1 +prompts: + dnd.scene_descriptions.validate_combat: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-scene-combat-policy.md + - role: user + content_file: ./instructions.md + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_scene_combat_semantics_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/scenes/prompts/prompt.yaml b/assets/dnd/scenes/prompts/prompt.yaml index 51f638ef..4280771c 100644 --- a/assets/dnd/scenes/prompts/prompt.yaml +++ b/assets/dnd/scenes/prompts/prompt.yaml @@ -1,34 +1,35 @@ -id: dnd.scenes -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./instructions.md - - role: user - content_file: ./sharedassets/common-dnd-transcript-full.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_scenes_llm.v1.json - repair_attempts: 1 +prompts: + dnd.scenes: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./instructions.md + - role: user + content_file: ./sharedassets/common-dnd-transcript-full.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_scenes_llm.v1.json + repair_attempts: 1 diff --git a/assets/dnd/spells/prompts/prompt.yaml b/assets/dnd/spells/prompts/prompt.yaml index 529ba85c..e62bb138 100644 --- a/assets/dnd/spells/prompts/prompt.yaml +++ b/assets/dnd/spells/prompts/prompt.yaml @@ -1,50 +1,51 @@ -id: dnd.spells -version: "v1" -default_profile: dnd-extraction -inputs: - - name: transcript - required: true - content_type: application/json - - name: spell_catalog - required: true - content_type: application/json - - name: players - required: false - content_type: text/plain - - name: party - required: false - content_type: text/plain - - name: glossary - required: false - content_type: text/plain - - name: npc_registry - required: false - content_type: application/json -messages: - - role: system - content_file: ./sharedassets/common-dnd-system.md - - role: user - content_file: ./sharedassets/common-dnd-identity.md - - role: user - content_file: ./sharedassets/common-dnd-references.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-transcript-chunk.md - cache_control: - type: ephemeral - - role: user - content_file: ./sharedassets/common-dnd-extraction-evidence.md - - role: user - content_file: ./sharedassets/common-dnd-npc-registry.md - - role: user - content_file: ./spell-catalog.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral -output: - format: json - validation_mode: json_schema - schema_path: dnd_spells_llm.v1.json - repair_attempts: 1 +prompts: + dnd.spells: + v1: + default_profile: dnd-extraction + inputs: + - name: transcript + required: true + content_type: application/json + - name: spell_catalog + required: true + content_type: application/json + - name: players + required: false + content_type: text/plain + - name: party + required: false + content_type: text/plain + - name: glossary + required: false + content_type: text/plain + - name: npc_registry + required: false + content_type: application/json + messages: + - role: system + content_file: ./sharedassets/common-dnd-system.md + - role: user + content_file: ./sharedassets/common-dnd-identity.md + - role: user + content_file: ./sharedassets/common-dnd-references.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-transcript-chunk.md + cache_control: + type: ephemeral + - role: user + content_file: ./sharedassets/common-dnd-extraction-evidence.md + - role: user + content_file: ./sharedassets/common-dnd-npc-registry.md + - role: user + content_file: ./spell-catalog.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + output: + format: json + validation_mode: json_schema + schema_path: dnd_spells_llm.v1.json + repair_attempts: 1 diff --git a/assets/generic/normalize/deduplication/prompts/prompt.yaml b/assets/generic/normalize/deduplication/prompts/prompt.yaml index 013fe707..1b93fcf3 100644 --- a/assets/generic/normalize/deduplication/prompts/prompt.yaml +++ b/assets/generic/normalize/deduplication/prompts/prompt.yaml @@ -1,27 +1,28 @@ -id: generic.semantic_reconciliation -version: "v1" -inputs: - - name: candidates - required: true - content_type: application/json - - name: transcript - required: true - content_type: application/json -messages: - - role: system - content_file: ./system.md - - role: user - content_file: ./protocol.md - - role: user - content_file: ./instructions.md - cache_control: - type: ephemeral - - role: user - content_file: ./candidates.md - - role: user - content_file: ./transcript-windows.md -output: - format: json - validation_mode: json_schema - schema_path: semantic_reconciliation_llm.v1.json - repair_attempts: 1 +prompts: + generic.semantic_reconciliation: + v1: + inputs: + - name: candidates + required: true + content_type: application/json + - name: transcript + required: true + content_type: application/json + messages: + - role: system + content_file: ./system.md + - role: user + content_file: ./protocol.md + - role: user + content_file: ./instructions.md + cache_control: + type: ephemeral + - role: user + content_file: ./candidates.md + - role: user + content_file: ./transcript-windows.md + output: + format: json + validation_mode: json_schema + schema_path: semantic_reconciliation_llm.v1.json + repair_attempts: 1 diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index bb0bebbd..b4fee705 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -185,6 +185,8 @@ separate filesystem scan. ## Stage 1 — Migrate Embedded And Maintained Definition Assets +> Completion: complete. + Goal: convert data without rewriting prompt semantics. Inspect `assets/**/prompts/prompt.yaml`, diff --git a/examples/llm-profiles/dnd-extraction.yml b/examples/llm-profiles/dnd-extraction.yml index 18546a76..75e5c76a 100644 --- a/examples/llm-profiles/dnd-extraction.yml +++ b/examples/llm-profiles/dnd-extraction.yml @@ -1,5 +1,6 @@ -id: dnd-extraction -backend: openrouter -model: openai/gpt-5.6-luna -timeout_seconds: 240 -service_tier: flex +profiles: + dnd-extraction: + backend: openrouter + model: openai/gpt-5.6-luna + timeout_seconds: 240 + service_tier: flex