Versions in this module Expand all Collapse all v0 v0.5.8 Nov 9, 2026 v0.5.7 Nov 3, 2026 v0.5.6 Oct 31, 2026 v0.5.5 Oct 28, 2026 v0.5.4 Oct 22, 2026 v0.5.3 Oct 12, 2026 v0.5.2 Oct 11, 2026 v0.5.1 Oct 6, 2026 v0.5.0 Oct 3, 2026 v0.4.10 Sep 27, 2026 v0.4.9 Sep 25, 2026 v0.4.8 Sep 20, 2026 v0.4.6 Sep 18, 2026 v0.4.5 Sep 17, 2026 v0.4.4 Sep 16, 2026 v0.4.3 Sep 14, 2026 Changes in this version + const DefaultRetentionDays + var ErrNoModel = errors.New("no model available for this tier") + var ErrNoRuntime = errors.New("no local model runtime found — start Ollama, LM Studio, Jan or Msty") + func ConfigPath(vault string) string + func DeleteKey(ref string) error + func GetKey(ref string) (string, error) + func Preview(text string, findings []Finding, maxChars int) string + func Redact(text string, findings []Finding) string + func SetKey(ref, secret string) error + type Capability struct + Err string + Loads bool + Model string + StructuredOutput bool + type Config struct + ExtraBlocked []string + RetentionDays int + Think string + Tiers map[string]TierConfig + func Defaults() *Config + func Load(vault string) (*Config, error) + func (c *Config) Retention() (days int, forever bool) + func (c *Config) Save(vault string) error + type Finding struct + End int + Kind string + Start int + Value string + func Scan(text string) []Finding + type Router struct + func New(cfg *Config, vault string) (*Router, error) + func (r *Router) Available() []string + func (r *Router) Local() *provider.Provider + func (r *Router) Model(t Tier) (string, error) + func (r *Router) ModelFor(t Tier, needSchema bool) (string, error) + func (r *Router) Probe(model string) Capability + func (r *Router) SetVerbose(v bool) + type Tier int + const T0 + const T1 + const T2 + const T3 + func ParseTier(s string) (Tier, error) + func (t Tier) String() string + type TierConfig struct + BaseURL string + CloudOK bool + KeyRef string + Model string