Add shared D&D prompt assets package

This commit is contained in:
2026-07-06 01:17:13 +00:00
parent 3217bb3e12
commit aee48d011e
11 changed files with 63 additions and 16 deletions

View File

@@ -0,0 +1,27 @@
package sharedassets
import (
"embed"
"gitea.maximumdirect.net/eric/notarius/internal/framework/llm"
)
//go:embed assets/prompts/*.md
var embeddedAssets embed.FS
func Register(registry *llm.AssetRegistry) error {
return registry.RegisterPromptFS(embeddedAssets, "assets/prompts")
}
func CommonHashParts() []llm.AssetHashPart {
return []llm.AssetHashPart{
{FS: embeddedAssets, Path: "assets/prompts/common-dnd-system.md"},
{FS: embeddedAssets, Path: "assets/prompts/common-dnd-transcript.md"},
}
}
func ReferenceHashParts() []llm.AssetHashPart {
return []llm.AssetHashPart{
{FS: embeddedAssets, Path: "assets/prompts/common-dnd-references.md"},
}
}