Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
func DefaultPath() string
Types ¶
type BudgetConfig ¶
type Config ¶
type Config struct {
Budget BudgetConfig `yaml:"budget"`
SpinDetection SpinDetectionConfig `yaml:"spin_detection"`
Enforcement EnforcementConfig `yaml:"enforcement"`
Notifications NotificationConfig `yaml:"notifications"`
Sources SourcesConfig `yaml:"sources"`
Traces TracesConfig `yaml:"traces"`
Logging LoggingConfig `yaml:"logging"`
Pricing map[string]PricingOverride `yaml:"pricing"`
}
type EnforcementConfig ¶
type LoggingConfig ¶
type NotificationConfig ¶
type PricingOverride ¶
type PricingOverride struct {
InputPerMTok float64 `yaml:"input_per_mtok"`
OutputPerMTok float64 `yaml:"output_per_mtok"`
CacheReadPerMTok float64 `yaml:"cache_read_per_mtok"`
CacheWritePerMTok float64 `yaml:"cache_write_per_mtok"`
}
PricingOverride allows users to override or add model pricing in config.yaml. Values are in USD per million tokens.
type SourcesConfig ¶
type SpinDetectionConfig ¶
type TracesConfig ¶
Click to show internal directories.
Click to hide internal directories.