validator

package
v1.0.0-beta.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationReport

type ValidationReport struct {
	Valid    bool
	Errors   []string
	Warnings []string
	Coverage float64
}

ValidationReport provides validation details

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator validates agent specifications

func NewValidator

func NewValidator() *Validator

NewValidator creates a new validator

func (*Validator) Validate

func (v *Validator) Validate(spec *parser.AgentSpec) error

Validate checks if an agent spec is valid

func (*Validator) ValidateWithReport

func (v *Validator) ValidateWithReport(spec *parser.AgentSpec) *ValidationReport

ValidateWithReport provides detailed validation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL