Documentation
¶
Overview ¶
Package shield bridges the Shield safety engine to the Cortex safety.Scanner interface, following the same DI auto-discovery pattern as cortex/llm/nexus.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter implements safety.Scanner by delegating to a shield engine.
func New ¶
func New(eng *shieldengine.Engine) *Adapter
New creates a new Shield adapter from a shield engine.
func (*Adapter) ScanInput ¶
func (a *Adapter) ScanInput(ctx context.Context, req *safety.ScanRequest) (*safety.ScanResult, error)
ScanInput scans input content via shield.
func (*Adapter) ScanOutput ¶
func (a *Adapter) ScanOutput(ctx context.Context, req *safety.ScanRequest) (*safety.ScanResult, error)
ScanOutput scans output content via shield.
Click to show internal directories.
Click to hide internal directories.