Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `yaml:"enabled"` Max int `yaml:"max"` RejectOnFailure bool `yaml:"reject_on_failure"` }
func DefaultConfig ¶ added in v0.17.0
func DefaultConfig() Config
type MaxTokensRule ¶
type MaxTokensRule struct {
// contains filtered or unexported fields
}
func MaxTokens ¶
func MaxTokens(cfg Config) *MaxTokensRule
Click to show internal directories.
Click to hide internal directories.