Skip to main content
Start freeBook a walkthrough

1,000 credits to start. No credit card.

Back to Glossary

Guardrails
AI Agents
Security

What Are AI Agent Guardrails?

AI agent guardrails are checks on what an agent reads, produces and does. The ones that hold up run outside the model, in the code around it.

By Hagai Cohen and Maksim Markov

November 28, 2026

6 min read


Definition

AI agent guardrails are the checks that limit what an agent can read, produce and do, applied to its inputs, its outputs and its actions. Some live inside the model as instructions in its prompt. The ones that hold up under pressure live outside it, in the code that decides which tools run, validates output, enforces budgets and asks a person before an irreversible step. A good guardrail keeps working when the model makes a mistake or is manipulated.

Why it matters

An agent in your operations is trusted with real systems, and each of its failure modes has a price:

  • It approves a refund outside policy because the customer's message was persuasive.
  • It updates a vendor record with changed bank details taken from an email nobody verified.
  • It retries a failing tool in a loop overnight and spends a month's model budget by morning.
  • It writes malformed JSON into an ERP import and the next job fails on it.

None of these needs a malicious attacker. They need an agent with more reach than checks.

How it works

Guardrails sit at three points in a run, plus the prompt rules that sit inside the model:

LayerWhat it controlsExamplesEnforced outside the model?
InputWhat reaches the agentWho may message it, what data it is given, screening of incoming textUsually
OutputWhat the model producesRequired output schema, a judge that scores replies, scanning for sensitive dataYes, when run by the platform
ActionWhat the agent doesTool grants, read-only access, approval before a call, spend limits, restricted queriesYes
Prompt rulesHow the model is told to behave"Never refund more than $200" in the system promptNo

Action guardrails carry the most weight, because actions are where a mistake leaves the screen and reaches a customer, a ledger or a bank. A practical order of work:

  1. Grant only the tools the job needs. Every attached tool is reachable on every turn.
  2. Classify each tool as read-only, reversible or irreversible.
  3. Put an approval gate on the irreversible ones, with a named approver who sees the exact arguments.
  4. Set spend limits that stop new runs, not just send an alert.
  5. Constrain output that another system will consume, with a schema.
  6. Record every decision so you can show who approved what.

Guardrails inside the model vs outside it

A guardrail inside the model is a request. It shapes behavior most of the time and costs nothing to add, which is why it is tempting to stop there. But the model weighs it against everything else in its context, including text from customers, documents and tool results, and on a bad turn it loses.

A guardrail outside the model is a rule. The tool isn't attached, so it can't be called. The gate holds the call until a person decides. The budget is spent, so the run doesn't start. The model's opinion of the rule doesn't matter, because the model doesn't execute it. Use prompt instructions for tone and judgment, and platform rules for anything that touches money, data or customers.

How Fruxon does it

Fruxon's guardrails are enforced around the model, not inside it. An agent reaches only the tools it is granted, and each tool carries an action type: read-only, reversible or irreversible. Automations, ledger stages and delegated runs can set a ceiling on which action types a run may use; the ceiling limits what can run, and approval is still configured per tool. An approval gate runs before the tool executes, outside the model. Its approver is a slot bound to a person, role or queue, they see the exact arguments, and each decision goes into a tamper-evident audit log. Gates auto-approve on draft and test runs, so production is where they bite.

Each agent has daily, weekly and monthly spend limits, separate for production and test runs, that either alert or block new runs; limits can also be set per customer. Output schemas are enforced where the model provider supports it. The built-in query tool accepts only SELECT statements, and its SQL guard rejects schema changes, stacked statements and file-access functions. Tool results, model output and outgoing replies are scanned for national ID numbers, payment cards, bank account numbers and secrets, and every detection is recorded per workspace. An optional inline judge scores replies on live runs and can log, block or send a reply back for another attempt. Fruxon has no content filter and no prompt-injection classifier.

Frequently asked questions

What are the main types of AI agent guardrails?

There are three. Input guardrails control what reaches the agent, such as who may talk to it and what data it is given. Output guardrails check what the model produces, such as whether a reply matches a required format. Action guardrails control what the agent can do in your systems, such as which tools it may call and which calls need a person's approval.

Are prompt instructions a guardrail?

They help, but they are the weakest kind. An instruction in the system prompt is text the model may or may not follow, and it can be overridden by other text in the context. Guardrails that matter for money, data or customers should be enforced by the platform, where the model has no say.

What is the difference between guardrails and human-in-the-loop?

Human-in-the-loop is one kind of guardrail: a person approves or answers before the agent continues. Other guardrails need no person at all, such as a spend limit that blocks new runs or a query tool that only accepts read statements. Most production agents combine both.

Does Fruxon filter agent content?

No. Fruxon has no content filter and no prompt-injection classifier. Its guardrails are tool grants, action types with run-level ceilings, approval gates outside the model, spend limits, output schema enforcement, a SQL statement guard and an optional inline judge. It also scans tool results, model output and outgoing replies for national ID numbers, payment cards, bank account numbers and secrets, and records every detection per workspace.

Related


Back to Glossary