Documentation
¶
Overview ¶
Package enemyevents prepares validated D&D combat grounding for enemy-event extraction.
Index ¶
- Constants
- func ModuleSpec() pipeline.ModuleSpec
- func Register(registry *pipeline.ExtractorRegistry) error
- func RegisterPromptAssets(registry *llm.AssetRegistry) error
- type Extractor
- func (e *Extractor) CheckpointFingerprints() []pipeline.CheckpointFingerprint
- func (e *Extractor) Extract(ctx context.Context, req contracts.TypedExtractionRequest) (contracts.TypedExtractionResult[dnd.EnemyEventList], error)
- func (e *Extractor) Key() string
- func (e *Extractor) ManifestMetadata() map[string]any
- func (e *Extractor) ReferenceSlots() []contracts.ReferenceSlot
- type Options
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) Extract ¶
func (e *Extractor) Extract(ctx context.Context, req contracts.TypedExtractionRequest) (contracts.TypedExtractionResult[dnd.EnemyEventList], error)
func (*Extractor) ManifestMetadata ¶
func (*Extractor) ReferenceSlots ¶
func (e *Extractor) ReferenceSlots() []contracts.ReferenceSlot
Click to show internal directories.
Click to hide internal directories.