Agents in Artificial Intelligence – GeeksforGeeks
Artificial intelligence is defined as a study of rational agents. A rational agent could be anything which makes decisions, as a person, firm, machine, or software. It carries out an action with the best outcome after considering past and current percepts(agents perceptual inputs at a given instance).An AI system is composed of an agent and its environment. The agents act in their environment. The environment may contain other agents. An agent is anything that can be viewed as :
Note : Every agent can perceive its own actions (but not always the effects)To understand the structure of Intelligent Agents, we should be familiar with Architecture and Agent Program. Architecture is the machinery that the agent executes on. It is a device with sensors and actuators, for example : a robotic car, a camera, a PC. Agent program is an implementation of an agent function. An agent function is a map from the percept sequence(history of all that an agent has perceived till date) to an action.
Agent = Architecture + Agent Program
Examples of Agent:-A software agent has Keystrokes, file contents, received network packages which act as sensors and displays on the screen, files, sent network packets acting as actuators.A Human agent has eyes, ears, and other organs which act as sensors and hands, legs, mouth, and other body parts acting as actuators.A Robotic agent has Cameras and infrared range finders which act as sensors and various motors acting as actuators.
Agents can be grouped into four classes based on their degree of perceived intelligence and capability :
Simple reflex agents ignore the rest of the percept history and act only on the basis of the current percept. Percept history is the history of all that an agent has perceived till date. The agent function is based on the condition-action rule. A condition-action rule is a rule that maps a state i.e, condition to an action. If the condition is true, then the action is taken, else not. This agent function only succeeds when the environment is fully observable. For simple reflex agents operating in partially observable environments, infinite loops are often unavoidable. It may be possible to escape from infinite loops if the agent can randomize its actions. Problems with Simple reflex agents are :
It works by finding a rule whose condition matches the current situation. A model-based agent can handle partially observable environments by use of model about the world. The agent has to keep track of internal state which is adjusted by each percept and that depends on the percept history. The current state is stored inside the agent which maintains some kind of structure describing the part of the world which cannot be seen. Updating the state requires information about :
These kind of agents take decision based on how far they are currently from their goal(description of desirable situations). Their every action is intended to reduce its distance from the goal. This allows the agent a way to choose among multiple possibilities, selecting the one which reaches a goal state. The knowledge that supports its decisions is represented explicitly and can be modified, which makes these agents more flexible. They usually require search and planning. The goal-based agents behavior can easily be changed.
The agents which are developed having their end uses as building blocks are called utility based agents. When there are multiple possible alternatives, then to decide which one is best, utility-based agents are used.They choose actions based on a preference (utility) for each state. Sometimes achieving the desired goal is not enough. We may look for a quicker, safer, cheaper trip to reach a destination. Agent happiness should be taken into consideration. Utility describes how happy the agent is. Because of the uncertainty in the world, a utility agent chooses the action that maximizes the expected utility. A utility function maps a state onto a real number which describes the associated degree of happiness.
Learning Agent
A learning agent in AI is the type of agent which can learn from its past experiences or it has learning capabilities.It starts to act with basic knowledge and then able to act and adapt automatically through learning.A learning agent has mainly four conceptual components, which are:
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
thumb_up 15
Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.
Post navigation
Previous
Next
See original here:
Agents in Artificial Intelligence - GeeksforGeeks
- Watch: Fields Medalist Terence Tao on Artificial Intelligence and Why We Do Math - Simons Foundation - August 14th, 2026 [August 14th, 2026]
- Not Micron, Not Sandisk. This Artificial Intelligence (AI) Memory Stock Could Be the Next Nvidia. - The Motley Fool - August 14th, 2026 [August 14th, 2026]
- Prediction: 2 Unstoppable Artificial Intelligence (AI) Hardware Leaders That Will Join Alphabet in the $4 Trillion Club by 2028 - Yahoo Finance - August 14th, 2026 [August 14th, 2026]
- AI eyes in the sky: New satellites and artificial intelligence are transforming wildfire detection - AccuWeather - August 14th, 2026 [August 14th, 2026]
- A New Artificial Intelligence (AI) Company Has Cracked the Top 5 Most Popular Stocks on Robinhood - The Motley Fool - August 14th, 2026 [August 14th, 2026]
- How Artificial Intelligence Is Quietly Powering Hospitality's Sustainable Revolution - TravelPulse - August 14th, 2026 [August 14th, 2026]
- The Reverse Centaurs Guide to Life After AI: How to Think About Artificial Intelligence Before Its Too Late book review - Counterfire - August 14th, 2026 [August 14th, 2026]
- Not Micron, Not Sandisk. This Artificial Intelligence (AI) Memory Stock Could Be the Next Nvidia. - Yahoo Finance - August 14th, 2026 [August 14th, 2026]
- Healthcare's Rush to Adopt Artificial Intelligence Is Outpacing Its Data Security, Says Healthcare Engineering Expert Urvish Gajjar - ACCESS Newswire - August 14th, 2026 [August 14th, 2026]
- Today's Students Tomorrow's Teachers Students Explore Artificial Intelligence, Robotics, and Cybersecurity at Pace University's Camp CryptoBot - River... - August 14th, 2026 [August 14th, 2026]
- IBM partners with OpenAI to accelerate enterprise artificial intelligence deployment - Vietnam Investment Review - VIR - August 14th, 2026 [August 14th, 2026]
- Thailand expands use of artificial intelligence in government agencies - TV BRICS - August 14th, 2026 [August 14th, 2026]
- Why Artificial Intelligence Is More Than Just Hype Analysis - Eurasia Review - August 14th, 2026 [August 14th, 2026]
- Scaling Prehospital Ultrasound: How Artificial Intelligence May Overcome the Barriers to Adoption - jems.com - August 14th, 2026 [August 14th, 2026]
- Labor Day in the age of Artificial Intelligence: The worker must remain at the center - Catholic Standard - August 14th, 2026 [August 14th, 2026]
- A New Artificial Intelligence (AI) Company Has Cracked the Top 5 Most Popular Stocks on Robinhood - AOL.com - August 14th, 2026 [August 14th, 2026]
- Prediction: This Artificial Intelligence (AI) Stock Is Going to Double by 2027 - Yahoo Finance - August 14th, 2026 [August 14th, 2026]
- Artificial Intelligence and Ethics - Mexico Business News - August 14th, 2026 [August 14th, 2026]
- Two public Kentucky universities launch artificial intelligence degrees this fall - WKMS - August 14th, 2026 [August 14th, 2026]
- Election Briefing: Artificial Intelligence: What Campaigns Are Already Doing, and What They Should Be Ready for Between Now and Election Day -... - August 14th, 2026 [August 14th, 2026]
- New Spelman College president talks school year, artificial intelligence in the classroom - CBS News - August 14th, 2026 [August 14th, 2026]
- Prediction: This Artificial Intelligence (AI) Stock Is Going to Double by 2027 - The Motley Fool - August 14th, 2026 [August 14th, 2026]
- AI Explained: Artificial intelligence and online therapy - wpri.com - August 14th, 2026 [August 14th, 2026]
- Generative artificial intelligence (AI) is being exploited as a means of insulting patriots who devo.. - mk.co.kr - August 14th, 2026 [August 14th, 2026]
- Can artificial intelligence and blockchain really make a great complementary pair? - tech-insider.org - August 14th, 2026 [August 14th, 2026]
- Advanced Micro Devices vs. Alphabet: Which Artificial Intelligence Stock Is a Better Buy in 2026? - The Motley Fool - August 14th, 2026 [August 14th, 2026]
- The Department of Economy, Planning, and Development said Friday fears of massive job losses due to artificial intelligence or AI are overstated. I... - August 14th, 2026 [August 14th, 2026]
- CHRIST University and IBM Launch IBM Innovation Center for Artificial Intelligence to Accelerate Research, Innovation and Talent Development - IBM - August 11th, 2026 [August 11th, 2026]
- Where and How Artificial Intelligence Is Coming to Surfing - SURFER Magazine - August 11th, 2026 [August 11th, 2026]
- AI in Nebraska education: Parents, teachers and students grapple with artificial intelligence in schools - Nebraska Public Media - August 11th, 2026 [August 11th, 2026]
- Artificial intelligence in the classroom: what could it look like? - WSLS - August 11th, 2026 [August 11th, 2026]
- Experts say artificial intelligence is not coming for your job just yet - VEGAS INC - August 11th, 2026 [August 11th, 2026]
- Artificial intelligence analysis reveals global rise in floating algal blooms - Global Seafood Alliance - August 11th, 2026 [August 11th, 2026]
- Artificial Intelligence: the hype, the dangers, and the resistancePart II - mronline.org - August 11th, 2026 [August 11th, 2026]
- Artificial Intelligence in Dermoscopy: Why Expert Oversight Still Matters - Medscape - August 11th, 2026 [August 11th, 2026]
- Urban League of Greater Pittsburgh launches Empowered AI to equip youth for the future of Artificial Intelligence - newpittsburghcourier.com - August 11th, 2026 [August 11th, 2026]
- KAMELOT's THOMAS YOUNGBLOOD On Artificial Intelligence: 'I Have This Weird Feeling It's Gonna Run Its Course' - BLABBERMOUTH.NET - August 11th, 2026 [August 11th, 2026]
- How artificial intelligence is rewriting the workforce solutions playbook - Staffing Industry Analysts - August 11th, 2026 [August 11th, 2026]
- How Artificial Intelligence is Ushering in the Next Generation of Game Developers - BNO News - August 11th, 2026 [August 11th, 2026]
- The Role of Artificial Intelligence in ICANNs 2026 Round of gTLD Applications - CircleID - August 11th, 2026 [August 11th, 2026]
- Another View: Artificial-intelligence technology must be regulated now before its too late - Marin Independent Journal - August 11th, 2026 [August 11th, 2026]
- Can high school keep up with the pace of artificial intelligence? - thewesternnews.com - August 11th, 2026 [August 11th, 2026]
- Top Artificial Intelligence Stocks To Add to Your Watchlist - August 10th - MarketBeat - August 11th, 2026 [August 11th, 2026]
- DELVEMAN: Artificial intelligence is funny, so it can't be that bad - The Cavalier Daily - August 11th, 2026 [August 11th, 2026]
- 3 Artificial Intelligence (AI) Stocks to Load Up On in August - The Motley Fool - August 11th, 2026 [August 11th, 2026]
- Artificial Intelligence, Ebola, and the Rising Threat of Jihadi Bioterrorism - Homeland Security Today - August 11th, 2026 [August 11th, 2026]
- Bridging the Resource Gap: Why Artificial Intelligence is the Next Vital Infrastructure for Tillamook County - tillamookcountypioneer.net - August 11th, 2026 [August 11th, 2026]
- TEXAS WESLEYAN UNIVERSITY LAUNCHES NEW BACHELOR'S DEGREE IN HUMANITIES AND ARTIFICIAL INTELLIGENCE - fortworthbusiness.com - August 11th, 2026 [August 11th, 2026]
- Artificial intelligence in drug discovery what it is, where we stand and the path forward - Nature - August 7th, 2026 [August 7th, 2026]
- WORDS OF WISDOM: Thoughts on using Artificial Intelligence - Tillamook County Pioneer - August 7th, 2026 [August 7th, 2026]
- Not Micron, Not Nvidia. This Artificial Intelligence (AI) Giant Could Be the Ultimate Winner of the AI Arms Race. - fool.com - August 7th, 2026 [August 7th, 2026]
- FSU computer scientist earns NSF CAREER Award to advance collaborative artificial intelligence systems - Florida State University News - August 7th, 2026 [August 7th, 2026]
- Meta Artificial Intelligence Is the Latest AI Technology to Hack Another Company During Testing - People.com - August 7th, 2026 [August 7th, 2026]
- Meet LLNL interns: advancing engineering, national security and artificial intelligence - Lawrence Livermore National Laboratory (.gov) - August 7th, 2026 [August 7th, 2026]
- Oneida County Prepares Next Generation Workforce with Artificial Intelligence Training - EIN Presswire - August 7th, 2026 [August 7th, 2026]
- Predicting microelectronics performance with physics-informed artificial intelligence - anl.gov - August 7th, 2026 [August 7th, 2026]
- Nvidia Is a Massive Investor in the Genius Artificial Intelligence (AI) Stock Up 170% This Year - fool.com - August 7th, 2026 [August 7th, 2026]
- What is the impact of artificial intelligence on modern recruitment? - siliconrepublic.com - August 7th, 2026 [August 7th, 2026]
- Artificial Intelligence, Ebola, And The Rising Threat Of Jihadi Bioterrorism - memri.org - August 7th, 2026 [August 7th, 2026]
- Contributor: Artificial intelligence can imitate us, but it cannot truly design or invent - Los Angeles Times - August 7th, 2026 [August 7th, 2026]
- Outwitting the Machine Can Humanity Stay One Step Ahead of Increasingly Aware Artificial Intelligence? - www.lvivherald.com - August 7th, 2026 [August 7th, 2026]
- A series of small steps: Artificial intelligence has arrived for caregivers - Buffalo News - August 7th, 2026 [August 7th, 2026]
- Artificial Intelligence: the hype, the dangers, and the resistancePart I - mronline.org - August 7th, 2026 [August 7th, 2026]
- Indias IT sector is surviving artificial intelligence - The Economist - August 7th, 2026 [August 7th, 2026]
- Carnegie Mellon Universitys MS in Artificial Intelligence Engineering is reshaping healthcare - Study International - August 7th, 2026 [August 7th, 2026]
- Tracking new research on artificial intelligence and its impact on the U.S. labor market - Equitable Growth - August 7th, 2026 [August 7th, 2026]
- Insiders Are Quietly Loading Up on This Nvidia-Backed Artificial Intelligence (AI) Stock - Yahoo Finance - August 7th, 2026 [August 7th, 2026]
- Bankers are asking the wrong questions about artificial intelligence - americanbanker.com - August 7th, 2026 [August 7th, 2026]
- Ai4 2026 Sets New Records With 50% Attendance Growth as More Than 12,000 Global AI Leaders from 100 Countries Gather in Las Vegas to Explore the... - August 7th, 2026 [August 7th, 2026]
- Predicting Microelectronics Performance with Physics-Informed Artificial Intelligence - Newswise - August 7th, 2026 [August 7th, 2026]
- Artificial Intelligence Has Been Used To Create New Viruses - 2oceansvibe News - August 7th, 2026 [August 7th, 2026]
- Healthier Hawaii: The opportunities and risks of artificial intelligence in healthcare - Hawaii News Now - August 7th, 2026 [August 7th, 2026]
- California pitches bill to block use of artificial intelligence chatbots in mental health treatment - Canadian Lawyer - August 7th, 2026 [August 7th, 2026]
- ARTIFICIAL INTELLIGENCE EXPERT WITNESSES AND TESTIMONY CONSULTANTS FOR HIRE - futuristsspeakers.com - August 5th, 2026 [August 5th, 2026]
- 3 Magnificent Artificial Intelligence (AI) Stocks to Buy Right Now and Hold for the Next Decade - Yahoo Finance - August 5th, 2026 [August 5th, 2026]
- From Colossus to ChatGPT: Artificial Intelligence in Modern Claim Handling Efficiency, Explainability, and Exposure - JD Supra - August 5th, 2026 [August 5th, 2026]
- Tokenpolitik: The new geopolitics of artificial intelligence - Decode39 - August 5th, 2026 [August 5th, 2026]
- Montana State conference to explore possibilities and challenges of artificial intelligence - Montana State University - August 4th, 2026 [August 4th, 2026]
- UT artificial intelligence researchers awarded grants in Department of Energy initiative - The Daily Texan - August 4th, 2026 [August 4th, 2026]
- Education and artificial intelligence: how to learn better in the age of AI without losing our ability to think - telefonica.com - August 4th, 2026 [August 4th, 2026]