config

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingAPIKey  = errors.New("config: api_key is required")
	ErrMissingBaseURL = errors.New("config: base_url is required")
	ErrMissingModel   = errors.New("config: model is required")
	ErrInvalidBaseURL = errors.New("config: base_url is not a valid URL")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	APIKey          string `koanf:"api_key"`
	BaseURL         string `koanf:"base_url"`
	Model           string `koanf:"model"`
	WebSearchAPIKey string `koanf:"web_search_api_key"`
}

func Load

func Load() (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL