Add D&D scene description extractor
This commit is contained in:
22
internal/modules/dnd/extract/scenedescriptions/schema.go
Normal file
22
internal/modules/dnd/extract/scenedescriptions/schema.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package scenedescriptions
|
||||
|
||||
import "gitea.maximumdirect.net/eric/notarius/internal/framework/llm"
|
||||
|
||||
const (
|
||||
PromptID = "dnd.scene_descriptions"
|
||||
ResponseSchemaKey = llm.ResponseSchemaKey("dnd_scene_descriptions_llm")
|
||||
ResponseSchemaID = "notarius.dnd.scene_descriptions.llm"
|
||||
ResponseSchemaName = "notarius_dnd_scene_descriptions_llm_v1"
|
||||
SchemaVersion = "v1"
|
||||
mappingPolicy = "dnd.scene_descriptions.mapping.v1"
|
||||
)
|
||||
|
||||
func loadResponseSchema() (llm.ResponseSchema, error) {
|
||||
return llm.LoadResponseSchema(embeddedAssets, llm.ResponseSchemaDefinition{
|
||||
Key: ResponseSchemaKey,
|
||||
ID: ResponseSchemaID,
|
||||
Version: SchemaVersion,
|
||||
Name: ResponseSchemaName,
|
||||
AssetPath: "assets/schemas/dnd_scene_descriptions_llm.v1.json",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user