Add D&D item event extractor

This commit is contained in:
2026-07-25 21:49:24 +00:00
parent f320c2fcee
commit f51b22bea7
16 changed files with 966 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package itemevents
type extractionResponse struct {
Events []itemEventResponse `json:"events"`
}
type itemEventResponse struct {
Name string `json:"name"`
Kind string `json:"kind"`
Quantity *int `json:"quantity,omitempty"`
From string `json:"from,omitempty"`
To string `json:"to,omitempty"`
SourceRefs []itemEventSourceRefResponse `json:"source_refs"`
}
type itemEventSourceRefResponse struct {
StartSegment int `json:"start_segment"`
EndSegment int `json:"end_segment"`
}