Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
Provider string `yaml:"provider"`
Model string `yaml:"model"`
APIKey string `yaml:"api_key"`
BaseURL string `yaml:"base_url,omitempty"`
Timeout int `yaml:"timeout"`
MaxTokens int `yaml:"max_tokens"`
Temperature *float64 `yaml:"temperature,omitempty"`
FailOnIssues *bool `yaml:"fail_on_issues,omitempty"`
InferenceDelay *int `yaml:"inference_delay,omitempty"`
Rules []Rule `yaml:"rules"`
}
func ParseFromBytes ¶
func (*Config) PrintAsYAML ¶
type FilePattern ¶
type Rule ¶
type Rule struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Enabled bool `yaml:"enabled"`
Files FilePattern `yaml:"files"`
Specs []Spec `yaml:"specs"`
Prompt string `yaml:"prompt,omitempty"`
FailOn string `yaml:"fail_on"`
ConfidenceThreshold *float64 `yaml:"confidence_threshold,omitempty"` // Deprecated field
}
Click to show internal directories.
Click to hide internal directories.