ai

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AIRuleEngine

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

func NewAIRuleEngine

func NewAIRuleEngine(
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
	model *ai.ComplianceModel,
) *AIRuleEngine

func (*AIRuleEngine) ValidateWithAI

func (are *AIRuleEngine) ValidateWithAI(
	ctx context.Context,
	input interface{},
) ([]ValidationResult, error)

type Suggestion

type Suggestion struct {
	Type        string
	Description string
	Priority    int
	Impact      float64
	Confidence  float64
}

type ValidationResult

type ValidationResult struct {
	RuleID      string
	Valid       bool
	Confidence  float64
	Suggestions []Suggestion
	Evidence    map[string]interface{}
	Timestamp   time.Time
}

type ValidationRule

type ValidationRule struct {
	ID          string
	Name        string
	Description string
	Model       *ai.Model
	Confidence  float64
	LastUpdated time.Time
	Metadata    map[string]interface{}
}

Jump to

Keyboard shortcuts

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