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
- 3 Artificial Intelligence Stocks to Buy and Hold Through 2035 - Yahoo Finance - October 28th, 2025 [October 28th, 2025]
- MVRDV Breaks Ground on the Innovation Park Artificial Intelligence Campus in Heilbronn, Germany - ArchDaily - October 28th, 2025 [October 28th, 2025]
- Study highlights potential use of artificial intelligence to aid in sepsis diagnosis, research - CIDRAP - October 28th, 2025 [October 28th, 2025]
- Artificial intelligence turns from marvel to menace - Washington Times - October 28th, 2025 [October 28th, 2025]
- How artificial intelligence hype is drowning out investment wisdom - The Globe and Mail - October 28th, 2025 [October 28th, 2025]
- AI in Horticulture Means Active Ingredient NOT Artificial Intelligence - 1490 WMRN - October 28th, 2025 [October 28th, 2025]
- NGO Forum: CSOs call for more robust artificial intelligence regulation in Africa - International Service for Human Rights - October 28th, 2025 [October 28th, 2025]
- Amazon to cut 14,000 corporate jobs as it ramps up spending on artificial intelligence - KNDU.com - October 28th, 2025 [October 28th, 2025]
- Optimized Artificial Intelligence: Atlas Is the iPhone Moment for Browsers - FinancialContent - October 28th, 2025 [October 28th, 2025]
- Amazon to cut 14,000 corporate jobs as it ramps up spending on artificial intelligence - FOX 28 Spokane - October 28th, 2025 [October 28th, 2025]
- Prediction: This Artificial Intelligence (AI) Stock Will Soar After Nov. 4 (Hint: It's Not Palantir) - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- Meet the Newest Artificial Intelligence (AI) Stock in the Dow Jones. It Has Soared 268% Since Early Last Year, and It's Still a Buy Right Now,... - October 28th, 2025 [October 28th, 2025]
- Prediction: This Artificial Intelligence (AI) Stock Is Going to Soar After Nov. 5 - Yahoo Finance - October 28th, 2025 [October 28th, 2025]
- Amazon to cut 14,000 corporate jobs as it ramps up spending on artificial intelligence - Barchart.com - October 28th, 2025 [October 28th, 2025]
- Google restarts nuclear plant in the US to power artificial intelligence: billion-dollar investment in clean energy - CPG Click Petrleo e Gs - October 28th, 2025 [October 28th, 2025]
- Mphasis Achieves ISO/IEC 42001:2023 Certification for Artificial Intelligence Management Systems (AIMS) - CXOToday.com - October 28th, 2025 [October 28th, 2025]
- 3 Unstoppable Artificial Intelligence (AI) Stocks to Buy Right Now - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- Artificial intelligence in defence it's already here - LRT - October 28th, 2025 [October 28th, 2025]
- Billionaire Investors Appear to Have a Favorite Artificial Intelligence (AI) Stock Right Now -- and It's Not Nvidia - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- Prediction: This Artificial Intelligence (AI) Stock Is Going to Soar After Nov. 5 - The Motley Fool - October 28th, 2025 [October 28th, 2025]
- Got $5,000? These Are 3 of the Best Artificial Intelligence (AI) Stocks to Buy Right Now - Yahoo Finance - October 28th, 2025 [October 28th, 2025]
- Features of state regulation of artificial intelligence in competitive conditions of a multipolar world - Regtechtimes - October 28th, 2025 [October 28th, 2025]
- Expert Says Artificial Intelligence Is Redefining Modern Finance - THISDAYLIVE - October 28th, 2025 [October 28th, 2025]
- The 2 Best Artificial Intelligence (AI) Stocks to Buy Before 2026, According to Certain Wall Street Analysts - Nasdaq - October 26th, 2025 [October 26th, 2025]
- Report on how Arkansas government can use artificial intelligence is in final stages - Magnolia Banner News - October 26th, 2025 [October 26th, 2025]
- Under-The-Radar Artificial Intelligence (AI) Stock Shines In Portfolio Expansion - The Globe and Mail - October 26th, 2025 [October 26th, 2025]
- AI models may be developing their own survival drive, researchers say | Artificial intelligence (AI) - The Guardian - October 26th, 2025 [October 26th, 2025]
- Meet the people who dare to say no to artificial intelligence - The Washington Post - October 26th, 2025 [October 26th, 2025]
- Micron: The Most Attractive Artificial Intelligence Play (NASDAQ:MU) - Seeking Alpha - October 26th, 2025 [October 26th, 2025]
- Prediction: This Artificial Intelligence (AI) Stock Will Join Nvidia, Microsoft, Apple, and Alphabet in the $3 Trillion Club by 2027 - The Motley Fool - October 26th, 2025 [October 26th, 2025]
- The 2 Best Artificial Intelligence (AI) Stocks to Buy Before 2026, According to Certain Wall Street Analysts - Yahoo Finance - October 26th, 2025 [October 26th, 2025]
- Nvidia Has 95% of Its Portfolio Invested in 2 Artificial Intelligence (AI) Stocks - The Motley Fool - October 26th, 2025 [October 26th, 2025]
- OpenAI CEO slammed for comments about jobs that will eventually be replaced by Artificial Intelligence - UNILAD - October 26th, 2025 [October 26th, 2025]
- Putin, artificial intelligence, and the politics of manufactured sovereignty - The American Bazaar - October 26th, 2025 [October 26th, 2025]
- Artificial Intelligence is dangerous and it must be regulated - The Telegraph - October 26th, 2025 [October 26th, 2025]
- Scale AI Veteran Bilal Abu-Ghazaleh Launches 1001 With $9 Million To Rebuild The Physical World Through Artificial Intelligence - Yahoo Finance - October 26th, 2025 [October 26th, 2025]
- The Evolution and Promise of Artificial Intelligence for the Future of Work - Ideastream - October 26th, 2025 [October 26th, 2025]
- Nvidia Has 95% of Its Portfolio Invested in 2 Artificial Intelligence (AI) Stocks - The Globe and Mail - October 26th, 2025 [October 26th, 2025]
- Acronis Drives Cybersecurity And Artificial Intelligence As Strategic Pillars In Mexico - CRN Magazine - October 26th, 2025 [October 26th, 2025]
- What Are the 2 Top Artificial Intelligence (AI) Stocks to Buy Right Now? - Nasdaq - October 26th, 2025 [October 26th, 2025]
- MENU - ORDER AI Launches October 28, Advancing Healthy Dining Through Artificial Intelligence -- and Preparing for the Next Wave of AGI - PR Newswire - October 26th, 2025 [October 26th, 2025]
- What Is One of the Best Artificial Intelligence (AI) Stocks to Buy Right Now? - Yahoo Finance - October 26th, 2025 [October 26th, 2025]
- Got $5,000? These Are 3 of the Best Artificial Intelligence (AI) Stocks to Buy Right Now - The Motley Fool - October 26th, 2025 [October 26th, 2025]
- 2 Artificial Intelligence (AI) Stocks to Buy Before They Soar 100%, According to Select Wall Street Analysts - Nasdaq - October 26th, 2025 [October 26th, 2025]
- Artificial Intelligence Is the New Language of Science - Hungarian Conservative - October 24th, 2025 [October 24th, 2025]
- Impacts of artificial intelligence (AI) in teaching and learning of built environment students in a developing country - Taylor & Francis Online - October 24th, 2025 [October 24th, 2025]
- Federal Agencies Solicit Public Input on Artificial Intelligence Across Healthcare, Energy, and Regulatory Reform - JD Supra - October 24th, 2025 [October 24th, 2025]
- Artificial Intelligence and Medical Translation: An Editorial on the Ethical Considerations for Emerging Technologies in Dermatology - Cureus - October 24th, 2025 [October 24th, 2025]
- Evaluating human-in-the-loop strategies for artificial intelligence-enabled translation of patient discharge instructions: a multidisciplinary... - October 24th, 2025 [October 24th, 2025]
- Faith and AI: How Artificial Intelligence Impacts Gods Creation - The Good Newsroom - October 24th, 2025 [October 24th, 2025]
- 1 Underrated Reason to Buy This Trillion-Dollar Artificial Intelligence (AI) Stock - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- Kevin Schaul to Cover Artificial Intelligence for The Washington Post - citybiz - October 24th, 2025 [October 24th, 2025]
- 1 Spectacular Artificial Intelligence (AI) Stock Down 42% You'll Regret Not Buying on the Dip - Yahoo Finance - October 24th, 2025 [October 24th, 2025]
- Artificial Intelligence in the Emerald City and Targeting Colon Cancer Stem Cells - Genetic Engineering and Biotechnology News - October 24th, 2025 [October 24th, 2025]
- Report on how Arkansas government can use artificial intelligence is in final stages - The Arkansas Democrat-Gazette - October 24th, 2025 [October 24th, 2025]
- Is the Artificial Intelligence (AI) Boom Turning Into a Bubble or Just Getting Started? - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- Artificial Intelligence News for the Week of October 24; Updates from IDC, Lenovo, Nexthink & More - solutionsreview.com - October 24th, 2025 [October 24th, 2025]
- The future of search: How artificial intelligence is transforming the way we find businesses - KSL.com - October 24th, 2025 [October 24th, 2025]
- Glean Technologies is recognized as a Progressive Company by MarketsandMarkets' 360Quadrants for Artificial Intelligence (AI) - Yahoo Finance - October 24th, 2025 [October 24th, 2025]
- A to B: Turning Artificial Intelligence into Business Intelligence - Exxon Mobil Corporation - October 24th, 2025 [October 24th, 2025]
- Waukesha County Technical College emerges as a leader in artificial intelligence education and training - The Business Journals - October 24th, 2025 [October 24th, 2025]
- Artificial Intelligence-Driven Predictive Modeling of Multi-Functional Carbon Nanotube Infused Smart Cement for Structural Reinforcement and Real-Time... - October 24th, 2025 [October 24th, 2025]
- 1 Magnificent Artificial Intelligence (AI) Stock to Buy Hand Over Fist Heading Into November - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- Undervalued and Profitable: This Magnificent Artificial Intelligence (AI) Stock Can Soar Higher After Skyrocketing 140% in 2025 - The Globe and Mail - October 24th, 2025 [October 24th, 2025]
- 1 Spectacular Artificial Intelligence (AI) Stock Down 42% You'll Regret Not Buying on the Dip - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- Artificial Intelligence Predicts Treatment Success in Psoriatic and Axial Spondyloarthritis - European Medical Journal - October 24th, 2025 [October 24th, 2025]
- Californias Transparency in Frontier Artificial Intelligence Act: 5 Things You Should Know - JD Supra - October 24th, 2025 [October 24th, 2025]
- Googles AI hits a home run: How artificial intelligence is transforming Baseball broadcasting at the Worl - The Economic Times - October 24th, 2025 [October 24th, 2025]
- Billionaire Bill Ackman May Be the Next Warren Buffett -- He's Buying 2 Artificial Intelligence (AI) Stocks Hand Over Fist - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- Meta to cut 600 jobs from its artificial intelligence division - Euronews.com - October 24th, 2025 [October 24th, 2025]
- Transforming Healthcare: The Role of Artificial Intelligence in Medical Diagnostics - vocal.media - October 24th, 2025 [October 24th, 2025]
- 3 Epic Artificial Intelligence (AI) Stocks to Load Up on Before 2026 Arrives - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- What Is One of the Best Artificial Intelligence (AI) Stocks to Buy Right Now? - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- Got $5,000? These Are 3 of the Best Artificial Intelligence (AI) Stocks to Buy Right Now - The Globe and Mail - October 24th, 2025 [October 24th, 2025]
- The Pentagon is using artificial intelligence right now. Heres how. - Breaking Defense - October 23rd, 2025 [October 23rd, 2025]
- Artificial intelligence used to make Kingston school threat - WJRT ABC12 - October 23rd, 2025 [October 23rd, 2025]
- On Artificial Intelligence and Network Effects - PYMNTS.com - October 23rd, 2025 [October 23rd, 2025]
- India takes the first shot at regulating artificial intelligence - Mint - October 23rd, 2025 [October 23rd, 2025]
- Tech Experts See Artificial Intelligence as a Key Resource Ahead of Local Elections - The Harvard Crimson - October 23rd, 2025 [October 23rd, 2025]
- Committee Advances Bipartisan Measure to Study the Impact of Artificial Intelligence on Pennsylvanias Workforce - Pennsylvania Senate Republicans - October 23rd, 2025 [October 23rd, 2025]