Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server ServerConfig `yaml:"server"`
LLM LLMConfig `yaml:"llm"`
Logging LoggingConfig `yaml:"logging"`
Routes []RouteConfig `yaml:"routes"`
}
Config represents the complete server configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a configuration with sensible defaults
type LLMConfig ¶
type LLMConfig struct {
Provider string `yaml:"provider"`
Model string `yaml:"model"`
APIKey string `yaml:"api_key"`
Endpoint string `yaml:"endpoint"`
SystemPrompt string `yaml:"system_prompt"`
Options map[string]interface{} `yaml:"options"`
}
LLMConfig holds LLM-specific configuration
type LoggingConfig ¶
LoggingConfig holds logging-specific configuration
type RouteConfig ¶
RouteConfig holds route-specific configuration
type ServerConfig ¶
type ServerConfig struct {
Port int `yaml:"port"`
ReadTimeout time.Duration `yaml:"read_timeout"`
WriteTimeout time.Duration `yaml:"write_timeout"`
MaxHeaderBytes int `yaml:"max_header_bytes"`
ShutdownTimeout time.Duration `yaml:"shutdown_timeout"`
}
ServerConfig holds server-specific configuration
Click to show internal directories.
Click to hide internal directories.