Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LLMValidator ¶
type LLMValidator struct {
// contains filtered or unexported fields
}
LLMValidator uses a separate LLM call to review agent output before posting.
func NewLLMValidator ¶
func NewLLMValidator(provider llm.Provider) *LLMValidator
NewLLMValidator creates a validator that uses the given LLM provider for review.
func (*LLMValidator) ValidateWithContext ¶
func (v *LLMValidator) ValidateWithContext(ctx context.Context, agentOutput string, issueContext string) ValidationResult
ValidateWithContext reviews agent output against the original issue context. On any error, it returns a fail-safe result (Passed=false).
type StructuralConfig ¶
type StructuralConfig struct {
MaxCommentLength int
AllowedMentions []string
AllowedURLHosts []string
}
StructuralConfig controls which deterministic checks the validator applies.
type StructuralValidator ¶
type StructuralValidator struct {
// contains filtered or unexported fields
}
StructuralValidator enforces deterministic safety rules on content.
func NewStructuralValidator ¶
func NewStructuralValidator(config StructuralConfig) *StructuralValidator
NewStructuralValidator creates a validator from the given config.
func (*StructuralValidator) Validate ¶
func (v *StructuralValidator) Validate(content string) ValidationResult
Validate checks content against all configured structural rules. It returns on the first failure.
type ValidationResult ¶
ValidationResult holds the outcome of a content validation check.
type Validator ¶
type Validator interface {
Validate(content string) ValidationResult
}
Validator checks content against safety rules.