Documentation
¶
Overview ¶
Package config resuelve las rutas del store local de nem (~/.nem) y la configuración persistida en config.toml.
Index ¶
- func ChatsDir() (string, error)
- func ConfigPath() (string, error)
- func DBPath() (string, error)
- func Dir() (string, error)
- func Get(key string) (string, error)
- func Keys() []string
- func Save(f *File) error
- func Scopes() (map[string]Scope, error)
- func Set(key, value string) error
- func StoreDir() (string, error)
- type Backend
- type File
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatsDir ¶
ChatsDir devuelve la ruta donde se exportan los .jsonl por commit (~/.nem/store/chats).
func ConfigPath ¶
ConfigPath devuelve la ruta del archivo de configuración (~/.nem/config.toml).
func Keys ¶ added in v0.2.0
func Keys() []string
Keys devuelve las claves configurables (para `nem config list`).
func Save ¶ added in v0.2.0
Save escribe el File a config.toml (sobrescribe; los comentarios se pierden).
Types ¶
type Backend ¶ added in v0.2.0
type Backend struct {
Backend string `toml:"backend,omitempty"`
Model string `toml:"model,omitempty"`
Endpoint string `toml:"endpoint,omitempty"`
}
Backend configura un backend pluggable (summarize/embed): "heuristic" | "ollama" | "api" | "static", con modelo y endpoint opcionales.
Click to show internal directories.
Click to hide internal directories.