Documentation ¶
Index ¶
- func Exists() bool
- func GetConversationDirectory() string
- func GetHomeDir() string
- func GetKnowledgeDirectory() string
- func GetModuleDirectory(subdir string) string
- func GetProgramDirectory() string
- func GetPromptDirectory() string
- func SaveConfig(cfg *Config) error
- type Config
- type InputConfig
- type OutputConfig
- type SpeechConfig
- type SqliteConfig
- type VoiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConversationDirectory ¶
func GetConversationDirectory() string
func GetKnowledgeDirectory ¶ added in v0.3.2
func GetKnowledgeDirectory() string
func GetModuleDirectory ¶
GetModuleDirectory returns the specified subdirectory under the data directory.
func GetProgramDirectory ¶
func GetProgramDirectory() string
GetProgramDirectory returns the application's data directory e.g., ~/.nomi on Unix systems.
func GetPromptDirectory ¶
func GetPromptDirectory() string
func SaveConfig ¶
SaveConfig saves the configuration to the YAML file.
Types ¶
type Config ¶
type Config struct { Input InputConfig `yaml:"input" json:"input"` Output OutputConfig `yaml:"output" json:"output"` DevMode bool `yaml:"dev_mode" json:"dev_mode"` PlaySound bool `yaml:"play_sound" json:"play_sound"` }
func LoadConfig ¶
LoadConfig loads the configuration from the YAML file or creates a default one if it doesn't exist.
type InputConfig ¶
type InputConfig struct {
Voice VoiceConfig `yaml:"voice" json:"voice"`
}
Manage the input sources
type OutputConfig ¶
type OutputConfig struct { Sqlite SqliteConfig `yaml:"sqlite" json:"sqlite"` Speech SpeechConfig `yaml:"speech" json:"speech"` }
type SpeechConfig ¶ added in v0.2.3
type SpeechConfig struct {
Enabled bool `yaml:"enabled" json:"enabled"`
}
type SqliteConfig ¶ added in v0.2.3
type VoiceConfig ¶
Click to show internal directories.
Click to hide internal directories.