feat(prompts): load system prompts and defaults from Docker volume; set runtime system prompt; add BACKBEAT standards

This commit is contained in:
anthonyrawlins
2025-09-06 15:42:41 +10:00
parent 1ccb84093e
commit 1806a4fe09
6 changed files with 901 additions and 20 deletions

22
pkg/prompt/types.go Normal file
View File

@@ -0,0 +1,22 @@
package prompt
// RoleDefinition represents a single agent role loaded from YAML.
type RoleDefinition struct {
ID string `yaml:"id"`
Name string `yaml:"name"`
Description string `yaml:"description"`
Tags []string `yaml:"tags"`
SystemPrompt string `yaml:"system_prompt"`
Defaults struct {
Models []string `yaml:"models"`
Capabilities []string `yaml:"capabilities"`
Expertise []string `yaml:"expertise"`
MaxTasks int `yaml:"max_tasks"`
} `yaml:"defaults"`
}
// RolesFile is the top-level structure for a roles YAML file.
type RolesFile struct {
Roles map[string]RoleDefinition `yaml:"roles"`
}