Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFilePath ¶
func ConfigFilePath() string
func EnsureDirs ¶
func EnsureDirs() error
func SessionDir ¶
func SessionDir() string
Types ¶
type ApprovalConfig ¶
type ApprovalConfig struct {
AutoApproveReads bool `toml:"auto_approve_reads"`
AutoApproveWrites bool `toml:"auto_approve_writes"`
AutoApproveShell bool `toml:"auto_approve_shell"`
}
ApprovalConfig specifies tool approval thresholds.
type Config ¶
type Config struct {
Provider ProviderConfig `toml:"provider"`
Approval ApprovalConfig `toml:"approval"`
Session SessionConfig `toml:"session"`
Tools ToolsConfig `toml:"tools"`
}
Config represents top-level configuration options.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns default configuration values.
type GatewayConfig ¶
type GatewayConfig struct {
BaseURL string `toml:"base_url"`
APIKey string `toml:"api_key"`
APIKeyEnv string `toml:"api_key_env"`
DefaultModel string `toml:"default_model"`
}
GatewayConfig configures an OpenAI-compatible gateway or cloud provider endpoint.
type OllamaConfig ¶
OllamaConfig configures local Ollama instance.
type ProviderConfig ¶
type ProviderConfig struct {
Default string `toml:"default"`
Ollama OllamaConfig `toml:"ollama"`
OmniRoute GatewayConfig `toml:"omniroute"`
OpenAI GatewayConfig `toml:"openai"`
Gemini GatewayConfig `toml:"gemini"`
Groq GatewayConfig `toml:"groq"`
OpenRouter GatewayConfig `toml:"openrouter"`
Anthropic GatewayConfig `toml:"anthropic"`
Qwen GatewayConfig `toml:"qwen"`
Kimi GatewayConfig `toml:"kimi"`
}
ProviderConfig specifies provider settings.
type SessionConfig ¶
SessionConfig specifies session settings.
type ShellConfig ¶
type ShellConfig struct {
TimeoutSeconds int `toml:"timeout_seconds"`
}
type ToolsConfig ¶
type ToolsConfig struct {
Shell ShellConfig `toml:"shell"`
}