Documentation
¶
Overview ¶
Package shieldadapter provides a guardrail adapter that bridges an external Shield content safety engine to the Nexus guard.Guard interface.
Deprecated: Shield ships its own guard, github.com/xraph/shield/integrations/nexusguard. This package will be removed in v2.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapMessages ¶
WrapMessages extracts text from provider messages for Shield checking.
Types ¶
type Adapter
deprecated
type Adapter struct {
// contains filtered or unexported fields
}
Adapter bridges Shield to the Nexus guard.Guard interface.
Deprecated: Shield ships its own guard, github.com/xraph/shield/integrations/nexusguard. This package will be removed in v2.
func NewWithAction
deprecated
func (*Adapter) Check ¶
func (a *Adapter) Check(ctx context.Context, input *guard.CheckInput) (*guard.CheckResult, error)
Click to show internal directories.
Click to hide internal directories.