Migrate maintained D&D examples to native configuration
This commit is contained in:
14
examples/dnd-complete/config.yml
Normal file
14
examples/dnd-complete/config.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
version: 6
|
||||
config:
|
||||
imports:
|
||||
- path: pipelines/dnd-session.yml
|
||||
required: true
|
||||
# This bounds ready pipeline jobs independently of native backend admission.
|
||||
concurrency:
|
||||
workers: 4
|
||||
output:
|
||||
directory: ./notarius-output
|
||||
cache_directory: ./notarius-cache
|
||||
# A directory alone does not enable capture; select --debug when needed.
|
||||
debug:
|
||||
directory: ./notarius-debug
|
||||
8
examples/dnd-complete/glossary.txt
Normal file
8
examples/dnd-complete/glossary.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
Ravenfall watchtower: a ruined watchtower near the party's current route.
|
||||
Mira Thorn: the watchtower's keeper.
|
||||
Elder Rowan: a missing local scholar.
|
||||
Kesh: a goblin captain leading raiders.
|
||||
Moonblade: a blade found in the watchtower's hidden cache.
|
||||
Cure Wounds: a healing spell.
|
||||
Shield: a defensive reaction spell.
|
||||
Aegis of Emberfall: a campaign spell recorded in the supplied catalog overlay.
|
||||
11
examples/dnd-complete/overlays/development.yml
Normal file
11
examples/dnd-complete/overlays/development.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
# Invocation: --overlay development. These are application controls, not a
|
||||
# replacement LLM scheduler or backend concurrency configuration.
|
||||
concurrency:
|
||||
workers: 1
|
||||
output:
|
||||
directory: ../notarius-output-development
|
||||
pipelines:
|
||||
dnd-session:
|
||||
llm_profile: notarius/dnd-extraction-development
|
||||
max_additional_turns: 0
|
||||
cache: bypass
|
||||
2
examples/dnd-complete/party.txt
Normal file
2
examples/dnd-complete/party.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Aria: party cleric and recurring healer.
|
||||
Borin: fighter ally.
|
||||
@@ -0,0 +1,31 @@
|
||||
# Establish session-wide reference artifacts before their consumers.
|
||||
id: describe-session
|
||||
artifacts:
|
||||
item-registry:
|
||||
extract:
|
||||
module: dnd/item-registry
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/item-registry
|
||||
npc-registry:
|
||||
extract:
|
||||
module: dnd/npc-registry
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/npc-registry
|
||||
location-registry:
|
||||
extract:
|
||||
module: dnd/location-registry
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/location-registry
|
||||
scene-descriptions:
|
||||
extract:
|
||||
module: dnd/scene-descriptions
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/scene-descriptions
|
||||
136
examples/dnd-complete/pipelines/dnd-session.yml
Normal file
136
examples/dnd-complete/pipelines/dnd-session.yml
Normal file
@@ -0,0 +1,136 @@
|
||||
config:
|
||||
imports:
|
||||
- path: dnd-session.describe-session.yml
|
||||
required: true
|
||||
destination: [pipelines, dnd-session, steps]
|
||||
placement: sequence-item
|
||||
pipelines:
|
||||
dnd-session:
|
||||
llm_profile: notarius/dnd-extraction-example
|
||||
mode: strict
|
||||
max_additional_turns: 2
|
||||
cache: auto
|
||||
input:
|
||||
module: seriatim
|
||||
# Stable campaign context is shared by every module that accepts these slots.
|
||||
references:
|
||||
party:
|
||||
path: ../party.txt
|
||||
glossary:
|
||||
path: ../glossary.txt
|
||||
chunk:
|
||||
module: dnd/scenes
|
||||
output:
|
||||
module: json
|
||||
options:
|
||||
include_chunk_map: true
|
||||
evidence_context:
|
||||
enabled: true
|
||||
window_units: 3
|
||||
lanes:
|
||||
- item-occurrences
|
||||
- item-registry
|
||||
- location-registry
|
||||
- location-occurrences
|
||||
- npc-registry
|
||||
- spells
|
||||
- combat-turns
|
||||
- npc-occurrences
|
||||
- enemy-events
|
||||
steps:
|
||||
- id: extract-events
|
||||
# Accepted registry artifacts and scene-description eligibility artifacts
|
||||
# are supplied in memory to their compatible consumers in this step.
|
||||
references:
|
||||
location_registry:
|
||||
artifact:
|
||||
step: describe-session
|
||||
lane: location-registry
|
||||
npc_registry:
|
||||
artifact:
|
||||
step: describe-session
|
||||
lane: npc-registry
|
||||
scene_descriptions:
|
||||
artifact:
|
||||
step: describe-session
|
||||
lane: scene-descriptions
|
||||
item_registry:
|
||||
artifact:
|
||||
step: describe-session
|
||||
lane: item-registry
|
||||
artifacts:
|
||||
item-occurrences:
|
||||
extract:
|
||||
module: dnd/item-occurrences
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/item-occurrences
|
||||
spells:
|
||||
extract:
|
||||
module: dnd/spells
|
||||
references:
|
||||
spell_catalog:
|
||||
path: ../spell-catalog.json
|
||||
merge:
|
||||
module: appendorder
|
||||
# Stage-local file references are intentionally bound at each stage.
|
||||
normalize:
|
||||
module: dnd/spells
|
||||
references:
|
||||
spell_catalog:
|
||||
path: ../spell-catalog.json
|
||||
combat-turns:
|
||||
extract:
|
||||
module: dnd/combat-turns
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/combat-turns
|
||||
npc-occurrences:
|
||||
extract:
|
||||
module: dnd/npc-occurrences
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/npc-occurrences
|
||||
location-occurrences:
|
||||
extract:
|
||||
module: dnd/location-occurrences
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/location-occurrences
|
||||
- id: track-enemies
|
||||
references:
|
||||
npc_registry:
|
||||
artifact:
|
||||
step: describe-session
|
||||
lane: npc-registry
|
||||
scene_descriptions:
|
||||
artifact:
|
||||
step: describe-session
|
||||
lane: scene-descriptions
|
||||
combat_turns:
|
||||
artifact:
|
||||
step: extract-events
|
||||
lane: combat-turns
|
||||
npc_occurrences:
|
||||
artifact:
|
||||
step: extract-events
|
||||
lane: npc-occurrences
|
||||
artifacts:
|
||||
enemy-events:
|
||||
extract:
|
||||
module: dnd/enemy-events
|
||||
merge:
|
||||
module: appendorder
|
||||
normalize:
|
||||
module: dnd/enemy-events
|
||||
|
||||
# Inherit the full pipeline, select a native profile variant, and disable
|
||||
# semantic continuation for a quick comparison. Structural repair stays native.
|
||||
dnd-session-development:
|
||||
extends: dnd-session
|
||||
llm_profile: notarius/dnd-extraction-development
|
||||
max_additional_turns: 0
|
||||
15
examples/dnd-complete/prompts.yml
Normal file
15
examples/dnd-complete/prompts.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# Native wrapperless settings, discovered beside this example's config.yml.
|
||||
# Inherit the bundled backend without pinning its queue or diagnostic defaults.
|
||||
backends:
|
||||
- id: limited-openrouter
|
||||
extends: {id: openrouter}
|
||||
concurrency_limit: 2
|
||||
collections:
|
||||
notarius:
|
||||
profiles:
|
||||
- id: dnd-extraction-example
|
||||
extends: {id: dnd-extraction}
|
||||
backend: limited-openrouter
|
||||
- id: dnd-extraction-development
|
||||
extends: {id: dnd-extraction-example}
|
||||
temperature: 0.2
|
||||
21
examples/dnd-complete/spell-catalog.json
Normal file
21
examples/dnd-complete/spell-catalog.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"schema_version": "notarius.dnd.spell-catalog-overlay.v1",
|
||||
"catalogs": [
|
||||
{
|
||||
"id": "notarius.example-campaign",
|
||||
"ruleset": "dnd-5e-2014",
|
||||
"source": {
|
||||
"title": "Notarius example campaign spell names",
|
||||
"version": "1",
|
||||
"url": "",
|
||||
"license": ""
|
||||
},
|
||||
"spells": [
|
||||
{
|
||||
"name": "Aegis of Emberfall",
|
||||
"aliases": ["Emberfall Aegis"]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
85
examples/dnd-complete/transcript.json
Normal file
85
examples/dnd-complete/transcript.json
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"metadata": {
|
||||
"id": "session-ravenfall",
|
||||
"title": "The Ravenfall Watchtower"
|
||||
},
|
||||
"segments": [
|
||||
{
|
||||
"id": 1,
|
||||
"start": 0,
|
||||
"end": 14,
|
||||
"speaker": "DM",
|
||||
"text": "Recap: last session, the party learned that Elder Rowan vanished near the Ravenfall watchtower."
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"start": 14,
|
||||
"end": 25,
|
||||
"speaker": "Player",
|
||||
"text": "Out of character, we agree to investigate the watchtower before the next game."
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"start": 25,
|
||||
"end": 39,
|
||||
"speaker": "DM",
|
||||
"text": "Aria and Borin arrive at the ruined Ravenfall watchtower as dusk settles over the road."
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"start": 39,
|
||||
"end": 55,
|
||||
"speaker": "Mira Thorn",
|
||||
"text": "Mira Thorn steps from the doorway and says, \"Elder Rowan warned me that Kesh would return for the relic.\""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"start": 55,
|
||||
"end": 70,
|
||||
"speaker": "DM",
|
||||
"text": "Mira leads the party to a hidden cache. The party discovers a moonblade and acquires 20 silver pieces."
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"start": 70,
|
||||
"end": 83,
|
||||
"speaker": "Aria",
|
||||
"text": "Aria hands her healing potion to Borin so he can carry it into the tower."
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"start": 83,
|
||||
"end": 96,
|
||||
"speaker": "DM",
|
||||
"text": "Kesh, the goblin captain, orders the raiders to attack. Roll initiative."
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"start": 96,
|
||||
"end": 110,
|
||||
"speaker": "DM",
|
||||
"text": "On Kesh's turn, he strikes Borin with his scimitar. Borin drinks the healing potion on his turn."
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"start": 110,
|
||||
"end": 124,
|
||||
"speaker": "Aria",
|
||||
"text": "Aria casts Cure Wounds on Borin, then invokes Aegis of Emberfall as Kesh closes in."
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"start": 124,
|
||||
"end": 137,
|
||||
"speaker": "DM",
|
||||
"text": "Kesh casts Shield as a reaction against Borin's counterattack, but the party drives the raiders away."
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"start": 137,
|
||||
"end": 150,
|
||||
"speaker": "DM",
|
||||
"text": "After the battle, Aria pays 5 silver pieces to repair the watchtower gate."
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user