Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Save ¶
Save normalises the profile and writes it under the runtime root root, through a temporary file that replaces the old one, so a failure does not leave a half-written profile.
func SystemPrompt ¶
SystemPrompt renders the profile as a <companion> block for the system prompt (name, style, traits and instructions), or an empty string when the companion is disabled.
Types ¶
type Profile ¶
type Profile struct {
Enabled bool `json:"enabled"`
Name string `json:"name"`
Style string `json:"style,omitempty"`
Traits []string `json:"traits,omitempty"`
Instructions string `json:"instructions,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Profile is the persona of the optional companion: whether it is enabled, its name, style, traits and instructions, and when it was created and last updated.
func DefaultProfile ¶
func DefaultProfile() Profile
DefaultProfile returns the default companion: enabled, named Seshat, with a calm, capable and direct style and warm, precise and proactive traits.
Click to show internal directories.
Click to hide internal directories.