enemyevents

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Overview

Package enemyevents prepares validated D&D combat grounding for enemy-event extraction.

Index

Constants

View Source
const (
	NPCRegistryReferenceSlot      = npcregistry.ReferenceSlot
	SceneDescriptionReferenceSlot = sceneregistry.ReferenceSlot
	CombatTurnReferenceSlot       = "combat_turns"
	NPCOccurrenceReferenceSlot    = "npc_occurrences"
	ReferenceMaxBytes             = 1048576
)
View Source
const (
	PromptID           = "dnd.enemy_events"
	ResponseSchemaKey  = llm.ResponseSchemaKey("dnd_enemy_events_llm")
	ResponseSchemaID   = "notarius.dnd.enemy_events.llm"
	ResponseSchemaName = "notarius_dnd_enemy_events_llm_v1"
	SchemaVersion      = "v1"
)
View Source
const (
	Key = "dnd/enemy-events"
)

Variables

This section is empty.

Functions

func ModuleSpec

func ModuleSpec() pipeline.ModuleSpec

func Register

func Register(registry *pipeline.ExtractorRegistry) error

func RegisterPromptAssets

func RegisterPromptAssets(registry *llm.AssetRegistry) error

Types

type Extractor

type Extractor struct {
	// contains filtered or unexported fields
}

func New

func New(llmClient contracts.StructuredLLMClient, _ Options, references ...contracts.ReferenceSet) (*Extractor, error)

func (*Extractor) CheckpointFingerprints

func (e *Extractor) CheckpointFingerprints() []pipeline.CheckpointFingerprint

func (*Extractor) Key

func (e *Extractor) Key() string

func (*Extractor) ManifestMetadata

func (e *Extractor) ManifestMetadata() map[string]any

func (*Extractor) ReferenceSlots

func (e *Extractor) ReferenceSlots() []contracts.ReferenceSlot

type Options

type Options struct{}

func DecodeOptions

func DecodeOptions(options map[string]any) (Options, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL