Files
notarius/internal/modules/dnd/register/profiles.go

18 lines
431 B
Go
Raw Normal View History

2026-08-03 16:39:45 +00:00
package register
import (
2026-08-05 00:37:19 +00:00
"fmt"
"io/fs"
2026-08-03 16:39:45 +00:00
2026-08-05 00:37:19 +00:00
rootassets "gitea.maximumdirect.net/eric/notarius/assets"
2026-08-03 16:39:45 +00:00
"gitea.maximumdirect.net/eric/notarius/internal/framework/llm"
)
func registerFallbackProfiles(assets *llm.AssetRegistry) error {
2026-08-05 00:37:19 +00:00
profiles, err := fs.Sub(rootassets.FS(), "dnd/profiles")
if err != nil {
return fmt.Errorf("scope D&D fallback profiles: %w", err)
}
return assets.RegisterFallbackProfileFS(profiles, ".")
2026-08-03 16:39:45 +00:00
}