Documentation
¶
Index ¶
Constants ¶
View Source
const ( DirMode os.FileMode = 0o700 FileMode os.FileMode = 0o600 )
View Source
const DefaultTOML = `` /* 2903-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Capture ¶
type Capture struct {
Precise bool `toml:"precise"`
Exclude []string `toml:"exclude"`
MutatingTools []string `toml:"mutating_tools"`
ReadonlyTools []string `toml:"readonly_tools"`
MaxFileBytes int64 `toml:"max_file_bytes"`
MaxOutputBytes int `toml:"max_output_bytes"`
TestCommands []string `toml:"test_commands"`
TestGlobs []string `toml:"test_globs"`
}
type Config ¶
type LLM ¶
type LLM struct {
Provider string `toml:"provider"`
Model string `toml:"model"`
BaseURL string `toml:"base_url"`
APIKeyEnv string `toml:"api_key_env"`
MaxUSDPerChange float64 `toml:"max_usd_per_change"`
SendCode bool `toml:"send_code"`
PriceInputPerMTok float64 `toml:"price_input_per_mtok"`
PriceOutputPerMTok float64 `toml:"price_output_per_mtok"`
MaxTokens int `toml:"max_tokens"`
}
func (LLM) EffectiveProvider ¶
type Paths ¶
type Paths struct {
ConfigDir string
ConfigFile string
DataDir string
DB string
Spool string
Shadow string
Keys string
Logs string
LogFile string
LLMCache string
}
func DefaultPaths ¶
func DefaultPaths() Paths
DefaultPaths follows XDG_CONFIG_HOME and XDG_DATA_HOME. Without them it uses ~/.config and ~/.local/share, and on Windows %APPDATA% and %LOCALAPPDATA%.
Click to show internal directories.
Click to hide internal directories.