ArticleslgStudy

computer science

AI agent

AI agent is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand AI agent rather than just read about it. In short: An AI agent is an artificial intelligence system that can autonomously pursue goals, make decisions and take actions. Agentic AI contrasts with tool-like AI, which performs narrow, specific tasks.

Key takeaways

  • AI agent belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect AI agent to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of AI agent from memory before moving on to harder problems.

Reference excerpt

An AI agent is an artificial intelligence system that can autonomously pursue goals, make decisions and take actions. Agentic AI contrasts with tool-like AI, which performs narrow, specific tasks. Examples of tool-like AI include non-agentic question-answering chatbots, which were common in 2023, and traditional machine learning algorithms. While there is no universally agreed-upon definition of an AI agent, common attributes of AI agents include goal-directed behavior, use of external tools, the ability to interact with and modify an external environment, and the ability to autonomously perform multi-step tasks. Their control flow is frequently driven by large language models (LLMs). Agent systems may also include memory components, planning logic, tool interfaces, and orchestration software for coordinating agent components.

History

The theoretical underpinnings for artificial agents emerged in the mid 20th century, with establishment of cybernetics and artificial intelligence. Oliver Selfridge's 1958 "Pandemonium: A Paradigm for Learning" paper was an important early theoretical contribution in establishing agent-oriented architecture. Practical implementations of agents for real world applications began to become widespread in the 1990s, after the introduction of the belief–desire–intention software model (BDI), and agent-oriented programming. Harvard professor Milind Tambe notes that in the 1990s, the definition of an AI agent was not clear. Pure digital agents were deployed in computer infrastructure for purposes such as monitoring, while agents connected to real-world sensors and actuators were increasingly used in industrial control systems. Early artificial agents tended to have simple if then logic, which expanded over time into large decision tree models. By the early 2010s, products like Siri and Alexa were released, and were sometimes called AI agents, though they lacked the general purpose reasoning ability of later agents run by large language models (LLMs). The development of LLMs during the late 2010s and early 2020s introduced new approaches to AI agents. Models such as GPT-3 demonstrated the ability to generate and understand natural language at a much larger scale than many earlier language systems. Academics began to study LLM agents from 2018. Deployment of such agents began to accelerate in late 2023 after OpenAI's "function-calling" API was made available, and especially after Anthropic's late 2024 introduction of Model Context Protocol (MCP), a standardised way for LLM agents to gain contextual awareness, and to act on the world by calling various external tools. The term "agentic" only began to be used with any frequency in 2024, popularised in part by researcher Andrew Ng.

Training and testing Researchers have attempted to build world models and reinforcement learning environments to train or evaluate AI agents. For example, video games such as Minecraft and No Man's Sky as well as replicas of company websites, have also been used for training such agents.

Autonomous capabilities The Financial Times compared AI agents' autonomy to the SAE classification of self-driving cars, in 2025, likening most applications to level 2 or level 3, with some achieving level 4 in highly specialized circumstances and level 5 being theoretical.

Reference architecture

Ken Huang proposed an AI agent reference architecture that consists of seven interconnected layers, with each layer building on the functionality of the layers beneath it:

Layer 1: Foundation models – trained on large datasets and adaptable to a range of tasks. Layer 2: Data operations – manages the data infrastructure required for AI agent operations, including vector databases, data loaders, and RAG. Layer 3: Agent frameworks – software that manages the AI agents. Layer 4: Deployment and infrastructure – the technical foundation of the AI agents. Layer 5: Evaluation and observability – the safety and performance of AI agents. Layer 6: Security and compliance – a protective framework for safe operation and compliance with regulatory boundaries. At this layer, security and compliance features embedded into all the AI agent stack layers are integrated together. Layer 7: Agent ecosystem – represents the AI agents' interface with real-world applications and users.

Agent harness

An agent harness, or agent scaffold, is the software layer surrounding a large language model that enables it to function as an AI agent. It commonly manages prompts, context, tool use, memory, execution state, operational constraints, sandboxes, permissions, and the processing of results. The harness connects the model to internal and external computer hardware, software, data files, databases, web browsers, command-line interfaces, and application programming interfaces, while controlling how the agent accesses and uses these resources to complete multi-step tasks.

Agent orchestration An agent orchestration is a layer surrounding multiple AI agents. The goal of agent orchestration is to produce a coherent group out of these AI agents, that is, a thing that achieves better results than a minimal "no orchestration" solution: running these agents in parallel without interaction, and synthesizing their outputs. Relatedly, a workflow is a layer surrounding an AI agent, or a group of AI agents, intended to allow better performance on certain tasks that has to progress in stages, or tight integration with specialized tasks. Examples include the following:

Prompt chaining: A sequence where the output of one step serves as the input for the next. Routing: Directing an input to a specialized downstream task or tool. Parallelization: The simultaneous execution of multiple tasks. Sequential processing: A fixed, linear progression of tasks through a predefined pipeline. Planner-critic: An iterative pattern where one agent generates a proposal and another evaluates it to provide feedback for refinement.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with AI agent

Start with the simplest possible case. Write down what AI agent claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to AI agent before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about AI agent ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of AI agent

In research
AI agent appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses AI agent in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
AI agent is common in secondary-school and first-year university syllabi. It links to neighbouring topics AI software, Agent-based software, Artificial intelligence, so understanding it makes those chapters shorter.
In everyday life
Look for AI agent outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “AI agent” →

How to study AI agent in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what AI agent means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain AI agent out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is AI agent in simple terms?

An AI agent is an artificial intelligence system that can autonomously pursue goals, make decisions and take actions. Agentic AI contrasts with tool-like AI, which performs narrow, specific tasks.

Why does AI agent matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study AI agent?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on AI agent.

Tags

  • AI software
  • Agent-based software
  • Artificial intelligence
  • Artificial intelligence engineering
  • Automation software
  • Cognitive architecture
  • Generative AI
  • Human–computer interaction
  • Large language models
  • Multi-agent systems

Keep exploring