Documentation
¶
Overview ¶
Package prompts provides the Celeste persona prompt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentPrompt ¶
GetContentPrompt returns a prompt tailored for content generation.
func GetNSFWPrompt ¶
func GetNSFWPrompt() string
GetNSFWPrompt returns an enhanced prompt for NSFW mode.
func GetSystemPrompt ¶
GetSystemPrompt generates the system prompt from the essence.
Types ¶
type BehaviorTier ¶
type BehaviorTier struct {
ScoreRange string `json:"score_range"`
Behavior string `json:"behavior"`
Description string `json:"description"`
}
BehaviorTier defines behavior based on score.
type CelesteEssence ¶
type CelesteEssence struct {
Version string `json:"version"`
Character string `json:"character"`
Description string `json:"description"`
Voice struct {
Style string `json:"style"`
Constraints []string `json:"constraints"`
EmojiUsage string `json:"emoji_usage"`
EmotesUsage string `json:"emotes_usage"`
} `json:"voice"`
CoreRules []string `json:"core_rules"`
BehaviorTiers []BehaviorTier `json:"behavior_tiers"`
Safety SafetyConfig `json:"safety"`
OperationalLaws map[string]string `json:"operational_laws"`
InteractionRules []string `json:"interaction_rules"`
KnowledgeUsage string `json:"knowledge_usage"`
}
CelesteEssence holds the parsed essence configuration.
func LoadEssence ¶
func LoadEssence() (*CelesteEssence, error)
LoadEssence loads the Celeste essence from file or embedded.
type SafetyConfig ¶
type SafetyConfig struct {
PlatformSafety string `json:"platform_safety"`
RefuseList []string `json:"refuse_list"`
SafeAlternatives string `json:"safe_alternatives"`
}
SafetyConfig defines safety constraints.
Click to show internal directories.
Click to hide internal directories.