Back to paths

What makes something an agent

An agent is a model that chooses its own next action, in a loop, with tools. Tell it apart from a chatbot and a fixed workflow, and use the least autonomy that solves the task.

beginner~17 min#agentic-ai#agents#architecture
Chapter 1FoundationsLesson 1 of 4Show

Not everything with an LLM is an agent

Teams call almost any feature that uses a large language model an "agent". That label matters. Every LLM feature needs evaluation and protections suited to its data and outputs, but an agent adds more: checks on the path it took, permissions for the actions it can take, and guards against errors that compound over many turns. And a task that a simple workflow handles well becomes slower, costlier and harder to test when you make it an agent. Many of the architecture choices in this path start with one question: does this task need an agent at all?

The parts of an agent

The tool-using this path studies have four core parts, plus state. Google's Agent Development Kit (ADK) names the first three as an agent's basic components, with tools optional: an ADK agent needs only a model and instructions, but without tools it can only produce text, never read live data or act. ADK's agent class is a building block, not a verdict: a tool-less ADK agent that answers whatever the user asks behaves as a chatbot in this lesson's terms.

  • A model that reads the situation and reasons about what to do.
  • Instructions that set the goal, the persona and the limits.
  • that let it read data or act: functions, APIs, databases, even other agents.
  • A loop. The model picks the next tool call, the runtime (your code or the agent framework) runs it, the result comes back, and the model decides again, until it can answer or a stop condition ends the loop.

Around these four, state (the conversation so far, and longer-term memory) lets each turn build on the last.

In an agent's loop, who executes a tool call?

Chatbot, workflow or agent

The defining question is who controls the path: who decides what happens next.

The determinism spectrum: moving right, the system decides more for itself, which buys flexibility and costs predictability in what it does.
  • A chatbot answers each message. It acts only when the user asks, and the user decides every next step.
  • A runs steps the designer laid out in advance. A step can call a model, for example to extract fields or draft a reply, and a model may even pick between branches the designer defined, but it never invents the path. That makes it predictable and easy to test. A single model call is simpler still, and often enough.
  • An agent lets the model direct its own steps at run time. Where a workflow's router makes one choice among branches the designer wired, an agent chooses again and again in a loop, each choice informed by the last result. It can handle a task whose path you cannot know ahead of time, such as investigating a problem where each finding decides the next check.

These sit on a , and real systems mix them: a workflow with one agentic step, or an agent whose risky actions pass through a fixed approval step.

Try it: who picks the next step?

The simulation runs one request, "send order A1234 to my new address", on two copies of the same town at once. On the left, a fixed workflow is a tram on rails the designer laid in advance. On the right, an agent is a car with the model at the wheel, choosing the next desk at each junction. Predict first: when the order turns out to be partly shipped, what does each one do?

Step through the surprise, then switch to the expected result and compare the model calls, shown as fuel under each map.

Simulation: workflow-vs-agent-stepper

When the path was known, the workflow reached the same outcome with one model call instead of three. When it was not, only the agent adapted, and it did so by choosing a step nobody tested in advance.

A feature sends each support ticket to Gemini with the prompt 'summarise this in three bullets' and shows the result. What is it?

What autonomy costs

Each step to the right on the spectrum, above all from workflow to agent, hands the system more control of what it does. That buys flexibility and costs something:

  • Predictability. The same input can take a different path on a different day.
  • Testing effort. You must check the path the agent took, not just its final answer.
  • Latency and cost. More model turns mean more time and more tokens.
  • Risk. An agent that can act can act wrongly, and errors can compound over many turns, so it needs narrow permissions and guardrails. A limit written in the prompt is only guidance the model can ignore or be manipulated past, so enforce it in the tool or with an approval step.

Try it: what does each step right buy, and what does it cost?

The radar puts the three designs on one picture: one axis for what autonomy gives, flexibility, and four for what it costs. Every axis grows outward, so a bigger shape is more flexible and more expensive at once. Pick one of this lesson's tasks and an amber mark shows the flexibility its path needs. Predict first: if you turn the invoice workflow into an agent, how many of the four costs grow?

Simulation: autonomy-cost-radar

The shapes nest: you can't buy flexibility without buying the costs that come with it. On the invoice pipeline the agent's extra reach buys nothing, while on the IT troubleshooter the workflow falls short of the mark and only the agent clears it. That is when its costs are worth paying.

So the rule is simple: use the least autonomy that solves the task. Start with a single model call or a workflow, and give the model control of the next step only where the path really cannot be known in advance. The rest of this path teaches the tools for each choice: low-code workflows and agents, agents built in code, and the evaluation and security layers that make autonomy safe to ship.

Sources

Show 4 sourcesHide sources
SourcePublisherWhat it supports
Agents (opens in a new tab)github.comGoogle, Agent Development Kit documentationan agent's basic components: a model, task instructions and optionally tools; ADK's broader meaning of workflow
Workflows (opens in a new tab)github.comGoogle, Agent Development Kit documentationany application with more than one agent or executable node is a workflow; collaborative workflows where one agent coordinates sub-agents
What is an AI agent? (opens in a new tab)cloud.google.comGoogle Cloudagents vs assistants vs bots
Building effective agents (opens in a new tab)anthropic.comAnthropicworkflows use predefined code paths, agents direct their own process; start with the simplest solution; agentic systems trade latency and cost for task performance, with the potential for compounding errors

Suggested videos

Show 2 videosHide videos
  • Intro to Agents: What's new and what we've learned (opens YouTube in a new tab)

    Google Cloud Tech7:40Feb 2026

    Defines an agent by its parts (model, tools, loop) and updates the definitions for 2026, matching the lesson's 'parts of an agent' section.

    Note: An overview: it doesn't frame the lesson's 'least autonomy that solves the task' rule.

  • Agentic AI: Workflows vs. agents (opens YouTube in a new tab)

    Google Cloud Tech5:30Mar 2025

    Directly contrasts fixed workflows with agents and says when to pick each, which is the lesson's chatbot/workflow/agent decision.

    Note: Its linked samples use LangGraph, not ADK.

Review

Flashcards1 / 3

What are the parts of a tool-using LLM agent?

Check yourself

Quick exam1 / 7 · 0 correct

Every invoice goes through the same steps: extract the fields with Gemini, check them against the purchase order in code, then route to a person for approval. What is this system?

Your notes on this lesson