prompts

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package prompts provides the Celeste persona prompt.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentPrompt

func GetContentPrompt(platform, format, tone, topic string) string

GetContentPrompt returns a prompt tailored for content generation.

func GetNSFWPrompt

func GetNSFWPrompt() string

GetNSFWPrompt returns an enhanced prompt for NSFW mode.

func GetSystemPrompt

func GetSystemPrompt(skipPrompt bool) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL