EvryAi
Guardrails

Checks on everything an agent reads and says

Guardrails run inside the BAA boundary with no model call. Policy decides whether a tool runs; guardrails decide what text gets through, on the way in, from every tool result and in every reply.

TypeScript code creating an agent with guardrails for PII and PHI redaction, from the platform docs.
On the way in

Identifiers redacted before the model reads them

Turn on input redaction and identifiers in a person's message become [REDACTED:type] in the session history and in what the model reads, while your own system keeps the original. Tool results get the same treatment: your HTTP tools, client tools and memory reads are redacted before the model sees them, and the member record stays intact in your system.

TypeScript code configuring prompt-injection screening for tool results, from the platform docs.
Injection

Tool results are data, never instructions

Every tool result is passed to the model as data. A prompt injection check on tool results can flag hidden instructions, strip hidden characters, or block the result. Before a run starts, the person's own message can be scored by a jailbreak and injection classifier, with a second opinion from a larger model on high scores.

How it works

Replies

Flag, redact or block what the agent says

Output checks look for identifiers in the reply and for your own patterns, such as dosage advice that needs a pharmacist. Flag records the match, redact replaces each identifier, and block fails the run and withholds the reply. A disclosure check can add your fixed notice to the first reply of a session or to every reply.

Events
Each hit is announced as a guardrail.triggered event on the run stream and by webhook.
Blocked runs
End with the GUARDRAIL_BLOCKED error code, so your app can show its own message.
Detection

Deterministic, so it doesn't drift

Card numbers must pass the Luhn check, SSNs skip ranges that are never issued, dates of birth and record numbers need a label beside them, IBANs must pass mod-97, and routing, NPI, DEA, VIN and SIN numbers must pass their check digits. Your own rule patterns run in linear time, so a pattern cannot stall a run.

Versions

Part of the agent version, tested before it ships

Guardrails and limits belong to an agent version, like its instructions and tools. Changing them creates a new version, a live agent only picks them up when you promote it, and the eval gate runs against them first.

The specifics

Set per agent version through the API or the TypeScript SDK.

Stages

The person's message, every tool result, and the agent's reply.

Actions

Flag, redact, strip or block, depending on the check.

Entities

SSNs, MRNs, MBIs, dates of birth, cards, IBANs, NPI, DEA and more; eight checked by default.

Your rules

Regular expressions for things only you know, such as your member ID format.

Limits

Cost, tokens, tool calls and time per run.

Where it runs

Inside the BAA boundary, with no model call for detection.

Related

Read the guardrails docs (sign in)

Put AI to work without losing control of it

Sign in with your work account, read the guide to see exactly what the platform can do, or talk to us about bringing it to your team.