modelallowlist

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "model_allowlist"

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelAllowlistData

type ModelAllowlistData struct {
	RequestedModel  string `json:"requested_model"`
	Decision        string `json:"decision"`
	MatchedPattern  string `json:"matched_pattern,omitempty"`
	SubstitutedWith string `json:"substituted_with,omitempty"`
	Behavior        string `json:"behavior"`
}

type Plugin

type Plugin struct{}

func New

func New() *Plugin

func (*Plugin) Execute

func (*Plugin) MandatoryStages

func (p *Plugin) MandatoryStages() []policy.Stage

func (*Plugin) MutatesMetadata added in v0.2.3

func (p *Plugin) MutatesMetadata() bool

func (*Plugin) MutatesRequestBody added in v0.2.3

func (p *Plugin) MutatesRequestBody() bool

func (*Plugin) MutatesResponseBody added in v0.2.3

func (p *Plugin) MutatesResponseBody() bool

func (*Plugin) Name

func (p *Plugin) Name() string

func (*Plugin) SupportedModes

func (p *Plugin) SupportedModes() []policy.Mode

func (*Plugin) SupportedStages

func (p *Plugin) SupportedStages() []policy.Stage

func (*Plugin) ValidateConfig

func (p *Plugin) ValidateConfig(settings map[string]any) error

Jump to

Keyboard shortcuts

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