@agent-inspect/guardrails
v6.7.2
Published
Deterministic local guardrail utilities for AgentInspect workflows
Readme
@agent-inspect/guardrails
Deterministic local guardrail rules over traces and metadata.
Support level: Supported — see SUPPORT-LEVELS.md.
When to use
- Pre-share checks (tool allowlists, metadata bounds)
- Custom deterministic policies in CI
When not to use
- Remote policy engines or compliance certification
- Default enforcement (opt-in only)
Install
npm install @agent-inspect/guardrailsExample
import { runGuardrails } from "@agent-inspect/guardrails";
const result = runGuardrails(traceEvents, { rules: [/* ... */] });Privacy
- Local evaluation only; no network
API
Guardrail rule runners and built-in rule types (see package exports).
CLI
Combine with npx agent-inspect check
Docs
Troubleshooting
- Rules are deterministic — they do not call LLMs
Version
Part of the fixed AgentInspect release line. See the npm badge / package manifest for the current version.
License
MIT
