Move location registry modules to canonical namespace
This commit is contained in:
25
internal/modules/dnd/extract/locationregistry/schema.go
Normal file
25
internal/modules/dnd/extract/locationregistry/schema.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package locationregistry
|
||||
|
||||
import "gitea.maximumdirect.net/eric/notarius/internal/framework/llm"
|
||||
|
||||
const (
|
||||
PromptID = "dnd.location_registry"
|
||||
ResponseSchemaKey = llm.ResponseSchemaKey("dnd_location_registry_llm")
|
||||
ResponseSchemaID = "notarius.dnd.location_registry.llm"
|
||||
ResponseSchemaName = "notarius_dnd_location_registry_llm_v1"
|
||||
SchemaVersion = "v1"
|
||||
)
|
||||
|
||||
func loadResponseSchema() (llm.ResponseSchema, error) {
|
||||
assets, err := moduleAssetFS()
|
||||
if err != nil {
|
||||
return llm.ResponseSchema{}, err
|
||||
}
|
||||
return llm.LoadResponseSchema(assets, llm.ResponseSchemaDefinition{
|
||||
Key: ResponseSchemaKey,
|
||||
ID: ResponseSchemaID,
|
||||
Version: SchemaVersion,
|
||||
Name: ResponseSchemaName,
|
||||
AssetPath: "schemas/dnd_location_registry_llm.v1.json",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user