# What Are AI Agents and How Do They Work? | QQuantum.ai

> What are AI agents and how do they work? A model in a loop with tools, a stopping rule and limits on what it may do alone, and how that differs from a chatbot.

Source: https://qquantum.ai/resources/what-are-ai-agents

[Home](https://qquantum.ai) [resources](https://qquantum.ai/resources) what-are-ai-agents

Resource

# What are AI agents? A model in a loop.

What are AI agents? The word is used for everything from a chatbot with a persona to a system that files your tax return. The useful definition is narrower and mechanical: an agent is a model that can decide what to do next, do it, look at the result, and go again, within tools, limits and approvals you set. This guide is for teams deciding whether they need one.

All Resources →

Introduction transcript. Qubi: An agent is a model in a loop, with tools and a goal. It decides the next step, acts with a tool, and looks at the result. It can only use the tools it is given, and a hard limit stops it. Where a mistake would matter, the agent drafts and a person releases it.

## The definition

A chatbot takes a message and returns a message. A workflow runs a fixed sequence of steps that someone designed in advance. An agent sits between them: the model chooses the steps, at runtime, from a set of tools it has been given, and keeps going until a goal is met or a limit is hit.

That loop — decide, act, observe, repeat — is the whole thing. Everything else on this page is about what you put inside it and what you put around it.

## The parts

01

### The model

The reasoning step. Typically a current frontier model from Anthropic, OpenAI or Google, or an open-weight equivalent where data has to stay inside your perimeter. The choice is a [constraints question](https://qquantum.ai/resources/choosing-a-model), not a leaderboard question.

02

### Tools

Functions the model may call: query a database, read a ticket, draft an email, run a search. Each tool has a typed interface, and the set of tools is the agent’s entire action space. What it cannot call, it cannot do.

03

### State

Unlike a single chat session, an agent can keep state across runs — in a database, a document store or a vector index. Memory is useful, not definitional: many production agents are stateless per run and are better for it.

04

### Planning and stopping

The capacity to break a goal into steps, notice when a step failed, and try something else — plus a hard limit on turns, spend and time. An agent without a stopping condition is a bill.

## Multi-agent review

A single agent that researches, writes and checks its own work has no independent check. The common fix is to split the roles: in a sales SDR design, for instance, a researcher agent gathers facts about an account, a writer drafts the message, and a critic reviews the draft against the brief and your guidelines. Nothing is sent unless the critic passes it.

This does not make the output correct. It makes each stage inspectable, so when something goes wrong you can see which step produced it — which is the property that matters when you are debugging at three in the morning.

Questions

## Questions about What Are AI Agents?.

### What is the difference between an LLM and an agent?

An LLM turns text into text. An agent is the software around it: a loop, a set of tools, a stopping condition and a record of what happened. The model is the reasoning step; the agent is the system.

### Are agents fully autonomous?

They sit on a spectrum, and where you put them is a design decision. For actions with legal or financial exposure the approval step should stay: the agent drafts, a person releases. Autonomy can widen for low-risk actions as measured accuracy supports it, not as confidence grows.

### How do AI agents work, step by step?

The model reads the goal and the context, chooses one of the tools it has been given, and calls it. The software runs that call and puts the result back into the context. The model looks at the result and decides the next step. That repeats until the goal is met or a hard limit on turns, spend or time stops it, and anything with real exposure waits for a person to approve it.

### When is an agent the wrong tool?

When the steps are known in advance. A fixed workflow with a model call inside it is cheaper, faster and easier to test than an agent deciding the same steps at runtime. Reach for the loop when the path genuinely varies per case.

Keep reading

- [Build one Custom AI Agents](https://qquantum.ai/custom-ai-agents)
- [Costs How much does an AI agent cost?](https://qquantum.ai/custom-ai-agents/ai-agent-cost)
- [The software around the model What Is an Agent Harness?](https://qquantum.ai/agent-harnesses/what-is-an-agent-harness)
- [Resource LLM Orchestration Explained](https://qquantum.ai/resources/llm-orchestration-explained)
- [Resource AI Agent Security for Enterprise](https://qquantum.ai/resources/ai-agent-security-enterprise)
- [Agents Autonomous Employees](https://qquantum.ai/autonomous-employees)
