MCPcopy
hub / github.com/netbirdio/netbird / Middleware

Struct Middleware

proxy/internal/middleware/builtin/llm_guardrail/middleware.go:32–34  ·  view source on GitHub ↗

Middleware enforces the model allowlist and optionally captures the request prompt with PII redaction.

Source from the content-addressed store, hash-verified

30// Middleware enforces the model allowlist and optionally captures the
31// request prompt with PII redaction.
32type Middleware struct {
33 cfg Config
34}
35
36// New constructs a Middleware with the supplied configuration. Model
37// allowlist entries are normalised so the runtime check is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected