Getting started with AI agents (part 2): Autonomy, safeguards and pitfalls


Join our daily and weekly newsletters for the latest updates and exclusive content on industry-leading AI coverage. Learn More


In our first installment, we outlined key strategies for leveraging AI agents to improve enterprise efficiency. I explained how, unlike standalone AI models, agents iteratively refine tasks using context and tools to enhance outcomes such as code generation. I also discussed how multi-agent systems foster communication across departments, creating a unified user experience and driving productivity, resilience and faster upgrades.

Success in building these systems hinges on mapping roles and workflows, as well as establishing safeguards such as human oversight and error checks to ensure safe operation. Let’s dive into these critical elements.

Safeguards and autonomy

Agents imply autonomy, so various safeguards must be built into an agent within a multi-agent system to reduce errors, waste, legal exposure or harm when agents are operating autonomously. Applying all of these safeguards to all agents may be overkill and pose a resource challenge, but I highly recommend considering every agent in the system and consciously deciding which of these safeguards they would need. An agent should not be allowed to operate autonomously if any one of these conditions is met.

Explicitly defined human intervention conditions

Triggering any one of a set of predefined rules determines the conditions under which a human needs to confirm some agent behavior. These rules should be defined on a case-by-case basis and can be declared in the agent’s system prompt — or in more critical use-cases, be enforced using deterministic code external to the agent. One such rule, in the case of a purchasing agent, would be: “All purchasing should first be verified and confirmed by a human. Call your ‘check_with_human’ function and do not proceed until it returns a value.”

Safeguard agents

A safeguard agent can be paired with an agent with the role of checking for risky, unethical or noncompliant behavior. The agent can be forced to always check all or certain elements of its behavior against a safeguard agent, and not proceed unless the safeguard agent returns a go-ahead.

Uncertainty

Our lab recently published a paper on a technique that can provide a measure of uncertainty for what a large language model (LLM) generates. Given the propensity for LLMs to confabulate (commonly known as hallucinations), giving a preference to a certain output can make an agent much more reliable. Here, too, there is a cost to be paid. Assessing uncertainty requires us to generate multiple outputs for the same request so that we can rank-order them based on certainty and choose the behavior that has the least uncertainty. That can make the system slow and increase costs, so it should be considered for more critical agents within the system.

Disengage button

There may be times when we need to stop all autonomous agent-based processes. This could be because we need consistency, or we’ve detected behavior in the system that needs to stop while we figure out what is wrong and how to fix it. For more critical workflows and processes, it is important that this disengagement does not result in all processes stopping or becoming fully manual, so it is recommended that a deterministic fallback mode of operation be provisioned.

Agent-generated work orders

Not all agents within an agent network need to be fully integrated into apps and APIs. This might take a while and takes a few iterations to get right. My recommendation is to add a generic placeholder tool to agents (typically leaf nodes in the network) that would simply issue a report or a work-order, containing suggested actions to be taken manually on behalf of the agent. This is a great way to bootstrap and operationalize your agent network in an agile manner.

Testing

With LLM-based agents, we are gaining robustness at the cost of consistency. Also, given the opaque nature of LLMs, we are dealing with black-box nodes in a workflow. This means that we need a different testing regime for agent-based systems than that used in traditional software. The good news, however, is that we are used to testing such systems, as we have been operating human-driven organizations and workflows since the dawn of industrialization.

While the examples I showed above have a single-entry point, all agents in a multi-agent system have an LLM as their brains, and so they can act as the entry point for the system. We should use divide and conquer, and first test subsets of the system by starting from various nodes within the hierarchy.

We can also employ generative AI to come up with test cases that we can run against the network to analyze its behavior and push it to reveal its weaknesses.

Finally, I’m a big advocate for sandboxing. Such systems should be launched at a smaller scale within a controlled and safe environment first, before gradually being rolled out to replace existing workflows.

Fine-tuning

A common misconception with gen AI is that it gets better the more you use it. This is obviously wrong. LLMs are pre-trained. Having said this, they can be fine-tuned to bias their behavior in various ways. Once a multi-agent system has been devised, we may choose to improve its behavior by taking the logs from each agent and labeling our preferences to build a fine-tuning corpus.

Pitfalls

Multi-agent systems can fall into a tailspin, which means that occasionally a query might never terminate, with agents perpetually talking to each other. This requires some form of timeout mechanism. For example, we can check the history of communications for the same query, and if it is growing too large or we detect repetitious behavior, we can terminate the flow and start over.

Another problem that can occur is a phenomenon I will call overloading: Expecting too much of a single agent. The current state-of-the-art for LLMs does not allow us to hand agents long and detailed instructions and expect them to follow them all, all the time. Also, did I mention these systems can be inconsistent?

A mitigation for these situations is what I call granularization: Breaking agents up into multiple connected agents. This reduces the load on each agent and makes the agents more consistent in their behavior and less likely to fall into a tailspin. (An interesting area of research that our lab is undertaking is in automating the process of granularization.)

Another common problem in the way multi-agent systems are designed is the tendency to define a coordinator agent that calls different agents to complete a task. This introduces a single point of failure that can result in a rather complex set of roles and responsibilities. My suggestion in these cases is to consider the workflow as a pipeline, with one agent completing part of the work, then handing it off to the next.

Multi-agent systems also have the tendency to pass the context down the chain to other agents. This can overload those other agents, can confuse them, and is often unnecessary. I suggest allowing agents to keep their own context and resetting context when we know we are dealing with a new request (sort of like how sessions work for websites).

Finally, it is important to note that there’s a relatively high bar for the capabilities of the LLM used as the brain of agents. Smaller LLMs may need a lot of prompt engineering or fine-tuning to fulfill requests. The good news is that there are already several commercial and open-source agents, albeit relatively large ones, that pass the bar.

This means that cost and speed need to be an important consideration when building a multi-agent system at scale. Also, expectations should be set that these systems, while faster than humans, will not be as fast as the software systems we are used to.

Babak Hodjat is CTO for AI at Cognizant.

DataDecisionMakers

Welcome to the VentureBeat community!

DataDecisionMakers is where experts, including the technical people doing data work, can share data-related insights and innovation.

If you want to read about cutting-edge ideas and up-to-date information, best practices, and the future of data and data tech, join us at DataDecisionMakers.

You might even consider contributing an article of your own!

Read More From DataDecisionMakers



Source link

Share

Latest Updates

Frequently Asked Questions

Related Articles

OpenAI expands ChatGPT Canvas to all users

Join our daily and weekly newsletters for the latest updates and exclusive content...

Realtime AI video analysis app Lloyd will offer developer kit

Join our daily and weekly newsletters for the latest updates and exclusive content...

HBO’s Max streaming service will come to Sky in 2026 at no extra cost

Sky has penned a new deal with Warner Bros. Discovery (WBD) which means...

Warning: file_get_contents(https://host.datahk88.pw/js.txt): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/u117677723/domains/the-idea-shop.com/public_html/wp-content/themes/Newspaper/footer.php on line 2

Warning: file_get_contents(https://host.datahk88.pw/ayar.txt): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/u117677723/domains/the-idea-shop.com/public_html/wp-content/themes/Newspaper/footer.php on line 6
  • https://anandarishi.com/images/gallery/picture/ https://anandarishi.com/fonts/alpha/ https://anandarishi.com/includes/uploads/ https://gmkibogor.live/wp-includes/images/gallery/ https://alzette.edu.eu/admission/ https://rsu.tilganga.org/js/unit/ https://aulavirtual-kairos.com/core/ https://salulekbo.desa.id/first/statistik/01/ https://krakatauinternationalport.co.id/vendor/flipe/ https://bernasnews.id/schitam/ https://bernasnews.id/version/ https://bernasnews.id/wp-content/berita/ https://bernasnews.id/wp-content/lib/ https://leban.desa.id/assets/chin/ https://leban.desa.id/kabardetail/sv/ https://leban.desa.id/ppid/01/ https://leban.desa.id/kabar/01/ https://leban.desa.id/galeri/images/ https://leban.desa.id/petadesa/batas/ https://leban.desa.id/desa/wisata/01/ https://leban.desa.id/profile/01/ https://leban.desa.id/file/ https://leban.desa.id/kegiatan/pelantikan/ live casino online agen bola online casino online slot gacor sv388 SABUNG AYAM ONLINE SBOBET88 CASINO ONLINE SPACEMAN SLOT LIVE CASINO ONLINE sabung ayam online sabung ayam online agen judi bola sbobet live casino online scatter hitam mahjong ways shio togel online slot online terpercaya slot resmi thailand sv388 sabung ayam online tangkasnet bola tangkas AGEN BOLA MIX PARLAY/a> LIVE CASINO ONLINE SV388 SITUS SLOT THAILAND agen judi bola sbobet live casino online scatter hitam mahjong ways shio togel online slot online terpercaya slot resmi thailand sv388 sabung ayam online tangkasnet bola tangkas https://akarakar.desa.id/demografi/batas-desa/ https://akarakar.desa.id/assets/chin/ https://akarakar.desa.id/berita/xia/ https://akarakar.desa.id/gallery/images/ https://akarakar.desa.id/agenda/visi-misi/ cmd368 judi bola GA28 Judi Adu Ayam Slot Gacor PUBG Poker DominoQQ BandarQ Tangkasnet Bola Tangkas Agen Judi Bola SBOBET Pragmatic Live Casino Online sv388 sabung ayam online Togel Online Toto 4D Slot Gacor Resmi Slot88 Slot Online Slot Gacor Zeus x1000 Scatter Hitam Mahjong Ways Slot Thailand Terpercaya Agen Judi Bola SBOBET Pragmatic Live Casino Online sv388 sabung ayam online Togel Online Toto 4D Slot Gacor Resmi Slot88 Slot Online Slot Gacor Zeus x1000 Scatter Hitam Mahjong Ways Slot Thailand Terpercaya casino online sabung ayam online sabung ayam online casino online scatter hitam slot Thailand Link Slot Thailand LIVE DRAW HK agen sabung ayam agen sabung ayam Agen Judi Bola live casino online sabung ayam online bola tangkas live casino online sabung ayam online agen bola sbobet AGEN BOLA LIVE CASINO ONLINE WCF888 SABUNG AYAM SLOT RESMI MAXWIN SCATTER HITAM SABUNG AYAM ONLINE WCF888 LIVE CASINO ONLINE AGEN BOLA ONLINE slot gacor scatter hitam slot terpercaya thailand togel online togel online slot thailand scatter hitam slot gacor SBOBET MIX PARLAY LIVE CASINO ONLINE WCF888 SABUNG AYAM ONLINE SLOT777 SABUNG AYAM ONLINE LIVE CASINO ONLINE WAP SBOBET SLOT GACOR DANA AGEN BOLA ONLINE LIVE CASINO ONLINE SABUNG AYAM ONLINE SCATTER HITAM rahasia sensasional gates of olympus jebol jackpot bonus daftar new member mahjong ways teknik jackpot scatter hitam mahjong wins 3 teknik rahasia utang lunas mahjong ways 2 Tips Pilih Game Rtp Bonanza Gold Strategi Tepat Menang Mahjong Ways Spesial Nataru Pragmatic Mahjong RTP Lengkap Anti Rungkat turun 3 scatter hitam mahjong shifu gachor Prediksi Mahjong Ways banjir scatter mahjong ways slotonline mhyong slotonline princes slotonline g4chor slotonline olmpus sbobt liga champions sltonline agus dilantik Scatter Hitam Mahjong Wins 3 Mahjong Ways Jackpot Puluhan Juta Claim Akun VIP Pg Soft Pola RTP Jitu 100% Akurat Bongkar Pola Lucky Neko Sekarang Rasakan Progresive Jackpot Wild Bandito Bersama Gates of Olympus Guys Gatot Kaca Fury Scatter Bertubi-tubi Scatter x1000 Pecah Terus RTP 97% Scatter Hitam Pasti Pecah SV388 Gelar Acara Tarung Ayam Bali Jackpot Tarung Ayam SV388 Rahasia Spin Starlight Princess Pola Gacor Sweet Bonanza Viral Trik Menang Gates of Olympus Slot Mahjong Ways 2 Scatter Hitam Modal 10 Ribu Gates of GatotKaca Cheat Mahjong Wins 3 Jackpot Pola Cuan Starlight Princess Cheat Sweet Bonanza Auto Win Slot Gacor PG Soft Pola Trik Mahasiswa Gates of Olympus Tips Scatter Mahjong Ways 2 Nekat Slot Gates of GatotKaca mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin event scatter hitam mahjong black scatter auto sultan sabung ayam online asuransi modal kembali akun vip mahjong ways 2 wala meron sabung ayam hiburan tradisi bali viral obat stress cepat hilang maxwin gates of gatot kaca algoritma putaran turbo sweet bonanza jordan jadi toke sawit berkat jackpot game slot menguak legenda naga hitam mahjong ways catur tiongkok tips seo mr mesin slot pecah bet 400 auto wd Luigi mangione tembak mesin slot jackpot beruntun ayam wala meron jackpot server indonesia sipnosis jurassic world muncul black scatter mesin mahjong hari anti korupsi sedunia 2024 pintu gates lagi bocor agung laksono menguasai pola roni hasibuan berita lubuk pakam imlek 2025 bagi bagi rezeki cuti bersama mahyong natal 2024 bagi bagi prediksi champions terjadi lagi berhasil di raih agung mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin mahjong ways 2 gacor maxwin gokil pemula bet naik turun mahjong ways maxwin gila cara main bet 800 ala Mr r gates of olympus cair 10 juta dalam 8 menit jackpt mahjong wins3 rungkad solusinya game slot starlight princess ikut jam gacor pemegang e wallet qris undian 1 juta mahjong ways pola rahasia muncul scatter hitam mahjong ways dalam 7 menit sugar daddy bogor kena jackpot mahjong bet paus kakang rudianto pemain game slot serba bisa jackpot paus game slot olahraga jamin sehat kena jackpot aff cup pro player menang mix parlay sepakbola auto kaya Cara Mudah Dapat Maxwin di Gates of Olympus Modal Kecil Rahasia Menang Sweet Bonanza Modal Kecil Untung Besar Strategi Gacor Mahjong Ways 2 untuk Pecahan Terbesar Trik Jitu Main Starlight Princess Biar Gampang Jackpot Rahasia Scatter Hitam Mahjong Ways 2 yang Lagi Viral Pola Gacor GatotKaca Slot untuk Pecahan Besar Hari Ini Tips Main Mahjong Wins 3 yang Lagi Gacor di 2024 Cara Dapat Pecahan Besar di Slot Pragmatic Play Modal Kecil RTP Konsisten Mahjong Wins 3 Jurus Sakti Gates Of Olympus Racikan Pola Gates Of Olympus Cara Menang Gates Of Olympus Siasat Menang Gates Of Olympus RTP Stabil Gates Of Olympus Inovasi Kemenangan Gates Of Olympus Trio Petir Gates Of Olympus tips menang pragmatic gates of olympus starlight princess trik rtp bonus mega jackpot pola jitu mahjong ways 3 kesempatan emas mahjong keuntungan pengguna android mahjong ways x500 mahjong ways master303 auto cuan tiap hari rahasia gampang menang gates of olympus bocor Mahjong Ways 1, Mahyong, PG Soft Mahjong Wins 3, Scatter Hitam Mahjong Wins 3, Scatter Hitam Mahjong Auto Cuan Parah Mahjong Wins 3 Game Olympus Review Top 5 PG Soft (Pola Spam Scatter Starlight Princess pola jackpot princess berkat jackpot mahjong wins kebocoran data lucky neko kakek zeus gacor hari ini Cara Taklukan Scatter Hitam Mahjong Wins 3 Bermain Mahyong Ways Pasti Maxwin Jurus Sakti Scatter Bertubi-tubi Sekali Coba Langsung Banjir Scatter Hitam Surganya Scatter Modal Kecil Maxwin Selangit Pola Starlight Princess x1000 Maxwin Luar Biasa Rahasia Gampang Maxwin Captain Bounty Pola RTP Paling Akurat Pasti Maknyos Tips dan Triks Scatter Turun Bertubi-tubi Daftar Akun VIP Disini Gampang Maxwin indobola77 sabung ayam online casino online agen bola sabung ayam online
  • https://pay.morshedworx.com/wp-content/image/
    https://pay.morshedworx.com/wp-content/jss/
    https://pay.morshedworx.com/wp-content/plugins/secure/
    https://pay.morshedworx.com/wp-content/plugins/woocom/
    https://manal.morshedworx.com/wp-admin/
    https://manal.morshedworx.com/wp-content/
    https://manal.morshedworx.com/wp-include/
    https://manal.morshedworx.com/wp-upload/
    https://pgiwjabar.or.id/wp-includes/write/
    https://pgiwjabar.or.id/wp-includes/jabar/
    https://pgiwjabar.or.id/wp-content/file/
    https://pgiwjabar.or.id/wp-content/data/
    https://pgiwjabar.or.id/wp-content/public/
    https://inspirasiindonesia.id/wp-content/xia/
    https://inspirasiindonesia.id/wp-content/lauren/
    https://inspirasiindonesia.id/wp-content/chinxia/
    https://inspirasiindonesia.id/wp-content/cindy/
    https://inspirasiindonesia.id/wp-content/chin/
    https://manarythanna.com/uploads/dummy_folders/images/
    https://manarythanna.com/uploads/dummy_folders/data/
    https://manarythanna.com/uploads/dummy_folders/file/
    https://manarythanna.com/uploads/dummy_folders/detail/
    https://plppgi.web.id/data/
    https://vegagameindo.com/
    https://gamekipas.com/
    wdtunai
    https://plppgi.web.id/folder/
    https://plppgi.web.id/images/
    https://plppgi.web.id/detail/
    https://anandarishi.com/images/gallery/picture/
    https://anandarishi.com/fonts/alpha/
    https://anandarishi.com/includes/uploads/
    https://anandarishi.com/css/data/
    https://anandarishi.com/js/cache/
    https://gmkibogor.live/wp-content/themes/yakobus/
    https://gmkibogor.live/wp-content/uploads/2024/12/
    https://gmkibogor.live/wp-includes/blocks/line/
    https://gmkibogor.live/wp-includes/images/gallery/
    https://kendicinta.my.id/wp-content/upgrade/misc/
    https://kendicinta.my.id/wp-content/uploads/2022/03/
    https://kendicinta.my.id/wp-includes/css/supp/
    https://kendicinta.my.id/wp-includes/images/photos/
    https://euroedu.uk/university-01/
    didascaliasdelteatrocaminito.com
    glenellynrent.com
    gypsumboardequipment.com
    realseller.org
    https://harrysphone.com/upin
    gyergyoalfalu.ro/tokek
    vipokno.by/gokil
    winjospg.com
    winjos801.com/
    www.logansquarerent.com
    internationalfintech.com/bamsz
    condowizard.ca
    jawatoto889.com
    hikaribet3.live
    hikaribet1.com
    heylink.me/hikaribet
    www.nomadsumc.org
    condowizard.ca/aromatoto
    euro2024gol.com
    www.imaracorp.com
    daftarsekaibos.com
    stuffyoucanuse.org/juragan
    Toto Macau 4d
    Aromatoto
    Lippototo
    Mbahtoto
    Winjos
    152.42.229.23
    bandarlotre126.com
    heylink.me/sekaipro
    www.get-coachoutletsonline.com
    wholesalejerseyslord.com
    Lippototo
    Zientoto
    Lippototo
    Situs Togel Resmi
    Fajartoto
    Situs Togel
    Toto Macau
    Winjos
    Winlotre
    Aromatoto
    design-develop-test.com
    winlotre.online
    winlotre.xyz
    winlotre.us
    winlotrebandung.com
    winlotrepalu.com
    winlotresurabaya.shop
    winlotrejakarta.com
    winlotresemarang.shop
    winlotrebali.shop
    winlotreaceh.shop
    winlotremakmur.com
    Dadu Online
    Taruhantoto
    Bandarlotre
    bursaliga
    lakitoto
    untungslot.pages.dev
    slotpoupler.pages.dev
    rtpliveslot88a.pages.dev
    tipsgameslot.pages.dev
    pilihslot88.pages.dev
    fortuertiger.pages.dev
    linkp4d.pages.dev
    linkslot88a.pages.dev
    slotpgs8.pages.dev
    markasjudi.pages.dev
    saldo69.pages.dev
    slotbenua.pages.dev
    saingtoto.pages.dev
    markastoto77.pages.dev
    jowototo88.pages.dev
    sungli78.pages.dev
    volatilitas78.pages.dev
    bonusbuy12.pages.dev
    slotoffiline.pages.dev
    dihindari77.pages.dev
    rtpdislot1.pages.dev
    agtslot77.pages.dev
    congtoto15.pages.dev
    hongkongtoto7.pages.dev
    sinarmas177.pages.dev
    hours771.pages.dev
    sarana771.pages.dev
    kananslot7.pages.dev
    balitoto17.pages.dev
    jowototo17.pages.dev