gatekeeper

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sanitizer

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

Sanitizer removes internal content from model responses.

func NewSanitizer

func NewSanitizer(cfg config.GatekeeperConfig) (*Sanitizer, error)

NewSanitizer creates a new Sanitizer. Returns error if custom patterns are invalid.

func (*Sanitizer) Enabled

func (s *Sanitizer) Enabled() bool

Enabled reports whether the sanitizer is active.

func (*Sanitizer) Sanitize

func (s *Sanitizer) Sanitize(text string) string

Sanitize applies all sanitization rules to the text.

Jump to

Keyboard shortcuts

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