32 lines
1.1 KiB
Go
32 lines
1.1 KiB
Go
package entityreconcile
|
|
|
|
import (
|
|
"gitea.maximumdirect.net/eric/notarius/internal/framework/llm"
|
|
)
|
|
|
|
const (
|
|
ResponseSchemaKey = llm.ResponseSchemaKey("dnd_entity_reconcile_llm")
|
|
ResponseSchemaID = "notarius.dnd.entity_reconcile.llm"
|
|
ResponseSchemaName = "notarius_dnd_entity_reconcile_llm_v1"
|
|
SchemaVersion = "v1"
|
|
SchemaAssetPath = "assets/schemas/dnd_entity_reconcile_llm.v1.json"
|
|
)
|
|
|
|
// LoadResponseSchema returns the shared private duplicate-group response
|
|
// contract. It is intentionally separate from durable artifact schemas.
|
|
func LoadResponseSchema() (llm.ResponseSchema, error) {
|
|
return llm.LoadResponseSchema(embeddedAssets, llm.ResponseSchemaDefinition{
|
|
Key: ResponseSchemaKey,
|
|
ID: ResponseSchemaID,
|
|
Version: SchemaVersion,
|
|
Name: ResponseSchemaName,
|
|
AssetPath: SchemaAssetPath,
|
|
})
|
|
}
|
|
|
|
// RegisterSchemaAssets makes the shared private response schema available to
|
|
// prompt preparation. A family registrar can register it once for all consumers.
|
|
func RegisterSchemaAssets(registry *llm.AssetRegistry) error {
|
|
return registry.RegisterSchemaFS(embeddedAssets, "assets/schemas")
|
|
}
|