• About
  • Advertise
  • Privacy & Policy
  • Contact
Sunday, January 11, 2026
  • Login
  • Home
    • Home – Layout 1
    • Home – Layout 2
    • Home – Layout 3
    • Home – Layout 4
    • Home – Layout 5
    • Home – Layout 6
  • News
    • All
    • Business
    • Politics
    • Science
    • World
    Hillary Clinton in white pantsuit for Trump inauguration

    Hillary Clinton in white pantsuit for Trump inauguration

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Tech
    • All
    • Apps
    • Gadget
    • Mobile
    • Startup
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
    • All
    • Gaming
    • Movie
    • Music
    • Sports
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    So you want to be a startup investor? Here are things you should know

    So you want to be a startup investor? Here are things you should know

  • Lifestyle
    • All
    • Fashion
    • Food
    • Health
    • Travel
    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    How couples can solve lighting disagreements for good

    How couples can solve lighting disagreements for good

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
  • Review
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    Intel Core i7-7700K ‘Kaby Lake’ review

    Intel Core i7-7700K ‘Kaby Lake’ review

No Result
View All Result
Ai News
Advertisement
  • Home
    • Home – Layout 1
    • Home – Layout 2
    • Home – Layout 3
    • Home – Layout 4
    • Home – Layout 5
    • Home – Layout 6
  • News
    • All
    • Business
    • Politics
    • Science
    • World
    Hillary Clinton in white pantsuit for Trump inauguration

    Hillary Clinton in white pantsuit for Trump inauguration

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Amazon has 143 billion reasons to keep adding more perks to Prime

    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Tech
    • All
    • Apps
    • Gadget
    • Mobile
    • Startup
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    These Are the 5 Big Tech Stories to Watch in 2017

    These Are the 5 Big Tech Stories to Watch in 2017

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
  • Entertainment
    • All
    • Gaming
    • Movie
    • Music
    • Sports
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    Harnessing the power of VR with Power Rangers and Snapdragon 835

    So you want to be a startup investor? Here are things you should know

    So you want to be a startup investor? Here are things you should know

  • Lifestyle
    • All
    • Fashion
    • Food
    • Health
    • Travel
    Shooting More than 40 Years of New York’s Halloween Parade

    Shooting More than 40 Years of New York’s Halloween Parade

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Heroes of the Storm Global Championship 2017 starts tomorrow, here’s what you need to know

    Why Millennials Need to Save Twice as Much as Boomers Did

    Why Millennials Need to Save Twice as Much as Boomers Did

    Doctors take inspiration from online dating to build organ transplant AI

    Doctors take inspiration from online dating to build organ transplant AI

    How couples can solve lighting disagreements for good

    How couples can solve lighting disagreements for good

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Ducati launch: Lorenzo and Dovizioso’s Desmosedici

    Trending Tags

    • Golden Globes
    • Game of Thrones
    • MotoGP 2017
    • eSports
    • Fashion Week
  • Review
    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    The Legend of Zelda: Breath of the Wild gameplay on the Nintendo Switch

    Shadow Tactics: Blades of the Shogun Review

    Shadow Tactics: Blades of the Shogun Review

    macOS Sierra review: Mac users get a modest update this year

    macOS Sierra review: Mac users get a modest update this year

    Hands on: Samsung Galaxy A5 2017 review

    Hands on: Samsung Galaxy A5 2017 review

    The Last Guardian Playstation 4 Game review

    The Last Guardian Playstation 4 Game review

    Intel Core i7-7700K ‘Kaby Lake’ review

    Intel Core i7-7700K ‘Kaby Lake’ review

No Result
View All Result
Ai News
No Result
View All Result
Home Machine Learning

How to Build Guardrails for Effective Agents

AiNEWS2025 by AiNEWS2025
2025-10-20
in Machine Learning
0
How to Build Guardrails for Effective Agents
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter


increasingly prevalent in a lot of applications. However, integrating agents into your application is a lot more than just giving an LLM access to all data and functions. You also need to build effective guardrails that ensure the agent only has access to relevant data and prevent misuse of functions. You need to do this, while also ensuring the model can work effectively with access to necessary data, and utilize as many functions as possible, without needing a human in the loop.

My goal for this article is to highlight, on a high level, how to build effective agentic guardrails to ensure your agent only has access to necessary data and functions while maintaining a good user experience, for example, minimizing the number of times a human has to approve an agent’s access. I’ll first discuss why guardrails are so important, before I move into a crucial component of guardrails: fine-grained authorization. Next, I’ll discuss building guardrails for your data, and continue covering guardrails for functions.

This infographic highlights the main topics of this article. I’ll discuss fine-grained authorization, guardrails for data, and guardrails for functions, which are all essential topics when discussing guardrails for AI agents. Image by Google Gemini.

Why you need guardrails for your agents

First, I want to describe why we need guardrails for AI agents. You could, in theory, just give the agent access to all databases and functions in your applications, right?

There are multiple reasons guardrails are necessary. The main reason is to prevent the agent from performing any undesired actions, such as deleting database tables. Furthermore, you also need to ensure agents only have access to data within a scope, for example, ensuring that an agent used by one customer cannot use the data from another customer.

Some guardrails can be set up automatically and never need human involvement. Database access is on such a guardrail, where you set the scope an agent operates in (for example, within a customer), and only allow the agent access to that customer’s data. Other guardrails, however, need human interaction. Imagine if an agent wants to run a command, how do we make sure the agent is not performing a destructive action (like deleting a database table), and the user allows the command?

In these scenarios, we have a human-in-the-loop, where the agent asks for permission to perform a specific action. If the user allows it, the agent can continue, and if it’s not allowed, the agent has to decide on a different course of action.

Fine-grained permissions

A likely requirement for working with agents is to have fine-grained permissions. This means you can easily check if a function, or some data, is available within a certain scope, such as:

  • Does this customer 1 have access to database table A?
  • Does user 2 have access to function B?
  • Does organization 3 have access to function C?

It’s crucial that you have fine-grained authorization implemented in your application. There are numerous providers out there offering this functionality.

When you have fine-grained authorization implemented, you have to implement it into all functions in your applications, and handle both the scenario where access is granted and where access is denied. If access is denied, for example, you might consider adding a message stating that you need to ask an admin for a specific access level to be able to perform a certain action.

Agentic guardrails for data

After you’ve implemented fine-grained permissions, we can start discussing guardrails around your data. It’s important that your agent has access to as much data as possible to effectively answer user questions. You then need to balance this with the fact that the agent shouldn’t access restricted data, or fetch unnecessary information it doesn’t need to answer the user query

Access to restricted data

Restricting access to data for your agents is mostly up to the fine-grained authorization. In your functions that perform data search (database lookup, bucket retrieval, …), you should check the user’s access scope first.

Furthermore, you should also consider informing your agent in the prompt what it’s allowed to do. Having the agent try to access data and then being denied access for whatever reason will be costly, both with regard to token usage and time-wise.

Avoid fetching unnecessary information

If you give your agent access to all database tables and data buckets, you might experience issues where the agents have too many options, and it will be challenging for the agent to pick the correct document table and fields. This is also a topic I discussed recently in my article about building tools for effective agents.

To solve this problem, I would focus on only informing the agent of relevant information sources. If the agent is working on a task that you know can be solved only using database A, you should consider only informing the agent about database A, and leaving all other databases out of the agents prompt. This, of course, assumes that you know which data is potentially relevant for the agent to answer queries.

Agentic guardrails for functions

I think the topic of building agentic guardrails for functions is even more interesting. The reason is that there is a lot of elements to consider when building these guardrails:

  • How do you prevent destructive actions?
  • How do you minimize human-in-the-loop interactions?

How do you prevent destructive actions

The most important subtopic on function guardrails is preventing destructive actions. To solve this, you should mark all functions on whether they perform irreversible actions. For example

  • Deleting a database table is irreversible (you can, of course, load a backup, but this requires some work)
  • Reading from a table has no destructive impact

If the agent performs an easily reversible action (it can be reversed with the click of an undo button), or an action that has no destructive impact, you can likely just allow the agent to run the function.

If a function performs an irreversible action, however, you should inform the agent of such, and likely prompt the human user if the agent can perform this action.

How do you minimize human-in-the-loop interactions

Naturally, you want to prevent destructive actions. However, you also don’t want to bother the user too much by prompting them if the agent can perform an action or not.

A great approach to minimizing human interactions is to perform function whitelisting, such as what Cursor does for running terminal commands: The first time Cursor wants to perform a command, such as:

  • cd into a folder
  • Run pytest tests
  • move a file from one location to another

Cursor will prompt the user if it’s allowed to perform a command. You can then choose one of the three options below:

  • Deny the request
  • Accept the request (one-time)
  • Whitelist the command (accept the request now, and going forward)

Whitelisting works well because you ensure the user allows the agent to run a function or command, but you don’t have to bother them anymore about that exact function going forward. Still, whitelisting has a downside that some commands can’t be whitelisted, considering a user has to review the context every time the agent suggests running some functions (such as deleting a database table)

Conclusion

In this high-level article, I’ve discussed how you should approach building agentic applications with regard to guardrails. Guardrails are necessary because you need to ensure the agent acts in desired behavior and isn’t allowed to perform actions like fetching information that is out of the access scope or performing destructive actions without explicit permission from the user. I discussed building guardrails for your data and for the functions you make available to your agent. I believe guardrails are an important part of agentic application building, which should always be kept top-of-mind when building agentic applications. Ensuring proper guardrails are in place will make your agents safer to use, which is critical, considering that if a user’s trust in the agent is broken, it will be hard to recover the trust of the user.

👉 Find me on socials:

🧑‍💻 Get in touch

🔗 LinkedIn

🐦 X / Twitter

✍️ Medium

You can also read some of my other articles:

Source link

#Build #Guardrails #Effective #Agents

Tags: agentAgentic AiAI safetyGuardrailLlm
Previous Post

Should an AI copy of you help decide if you live or die?

Next Post

This retina implant lets people with vision loss do a crossword puzzle

AiNEWS2025

AiNEWS2025

Next Post
This retina implant lets people with vision loss do a crossword puzzle

This retina implant lets people with vision loss do a crossword puzzle

Stay Connected test

  • 23.9k Followers
  • 99 Subscribers
  • Trending
  • Comments
  • Latest
A tiny new open source AI model performs as well as powerful big ones

A tiny new open source AI model performs as well as powerful big ones

0
Water Cooler Small Talk: The Birthday Paradox 🎂🎉 | by Maria Mouschoutzi, PhD | Sep, 2024

Water Cooler Small Talk: The Birthday Paradox 🎂🎉 | by Maria Mouschoutzi, PhD | Sep, 2024

0
Ghost of Yōtei: The acclaimed Ghost of Tsushima is getting a sequel

Ghost of Yōtei: The acclaimed Ghost of Tsushima is getting a sequel

0
Best Headphones for Working Out (2024): Bose, Shokz, JLab

Best Headphones for Working Out (2024): Bose, Shokz, JLab

0
Can One AI Platform Replace Your Creative Tool Stack?

Can One AI Platform Replace Your Creative Tool Stack?

2026-01-10
Federated Learning, Part 1: The Basics of Training Models Where the Data Lives

Federated Learning, Part 1: The Basics of Training Models Where the Data Lives

2026-01-10
Conservative lawmakers want porn taxes. Critics say they’re unconstitutional.

Conservative lawmakers want porn taxes. Critics say they’re unconstitutional.

2026-01-10
Elon Musk says he’s going to open-source the new X algorithm next week

Elon Musk says he’s going to open-source the new X algorithm next week

2026-01-10

Recent News

Can One AI Platform Replace Your Creative Tool Stack?

Can One AI Platform Replace Your Creative Tool Stack?

2026-01-10
Federated Learning, Part 1: The Basics of Training Models Where the Data Lives

Federated Learning, Part 1: The Basics of Training Models Where the Data Lives

2026-01-10
Conservative lawmakers want porn taxes. Critics say they’re unconstitutional.

Conservative lawmakers want porn taxes. Critics say they’re unconstitutional.

2026-01-10
Elon Musk says he’s going to open-source the new X algorithm next week

Elon Musk says he’s going to open-source the new X algorithm next week

2026-01-10
Footer logo

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

Follow Us

Browse by Category

  • AI & Cloud Computing
  • AI & Cybersecurity
  • AI & Sentiment Analysis
  • AI Applications
  • AI Ethics
  • AI Future Predictions
  • AI in Education
  • AI in Fintech
  • AI in Gaming
  • AI in Healthcare
  • AI in Startups
  • AI Innovations
  • AI News
  • AI Research
  • AI Tools & Automation
  • Apps
  • AR/VR & AI
  • Business
  • Deep Learning
  • Emerging Technologies
  • Entertainment
  • Fashion
  • Food
  • Gadget
  • Gaming
  • Health
  • Lifestyle
  • Machine Learning
  • Mobile
  • Movie
  • Music
  • News
  • Politics
  • Review
  • Robotics & Smart Systems
  • Science
  • Sports
  • Startup
  • Tech
  • Travel
  • World

Recent News

Can One AI Platform Replace Your Creative Tool Stack?

Can One AI Platform Replace Your Creative Tool Stack?

2026-01-10
Federated Learning, Part 1: The Basics of Training Models Where the Data Lives

Federated Learning, Part 1: The Basics of Training Models Where the Data Lives

2026-01-10
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.