Documentation
¶
Index ¶
- Variables
- func Dir() (string, error)
- func Init() error
- func LoadMessagePrompt() (string, error)
- func LoadSystemPrompt() (string, error)
- func MessagePromptPath() (string, error)
- func Path() (string, error)
- func Save(cfg *Config) error
- func SystemPromptPath() (string, error)
- type Config
- type DaemonConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMessagePrompt string
View Source
var DefaultSystemPrompt string
Functions ¶
func LoadMessagePrompt ¶ added in v0.0.5
LoadMessagePrompt reads the message prompt template from disk
func LoadSystemPrompt ¶
LoadSystemPrompt reads the system prompt from disk
func MessagePromptPath ¶ added in v0.0.5
MessagePromptPath returns the path to the message prompt template file
func SystemPromptPath ¶
SystemPromptPath returns the path to the system prompt file
Types ¶
type Config ¶
type Config struct {
Provider string `yaml:"provider"`
Model string `yaml:"model"`
DefaultPersona string `yaml:"default_persona"`
ContextEntries int `yaml:"context_entries"` // number of previous entries to include for continuity
Daemon *DaemonConfig `yaml:"daemon,omitempty"`
}
Config holds application-level settings
type DaemonConfig ¶ added in v0.0.3
type DaemonConfig struct {
Rate int `yaml:"rate"` // number of entries per period
RatePeriod string `yaml:"rate_period"` // "hour", "day", or "week"
Personas []string `yaml:"personas"` // personas to randomly select from
}
DaemonConfig holds settings for autonomous entry generation
func DefaultDaemonConfig ¶ added in v0.0.3
func DefaultDaemonConfig() *DaemonConfig
DefaultDaemonConfig returns sensible defaults for daemon settings
Click to show internal directories.
Click to hide internal directories.