Tools and protocols / 4 of 8

What makes an AI agent?

8 minOpening your notebook…

What you’ll learn

  • Explain the main idea of “What makes an AI agent?” in your own words.
  • Trace a concrete example and identify the assumptions behind it.
  • Apply the principle in a practice problem and recognize a common failure.

The idea, intuitively

An agent uses model decisions and tools in a feedback loop toward a goal. The important design choices are its authority, observations, allowed actions, and stopping conditions. A fixed workflow can be better when the task is predictable.

An agent can only act through the capabilities an application exposes. Model-generated plans and tool calls are proposals that require validation. Keep the user’s actual goal and authorization visible throughout the loop. More autonomy increases the importance of explicit boundaries, inspectable state, and meaningful stopping conditions.

Under the hood

Represent state explicitly and validate transitions. Separate planning from execution where actions have consequences. Evaluate successful task completion, cost, and harmful actions rather than only conversational quality.

A useful caution

Autonomy should be bounded by the user’s intended scope.

A worked example

A research agent may search, inspect sources, and produce a cited brief. It does not need permission to send messages or purchase access unless those actions are explicitly authorized.

How to use this way of thinking

Write the goal, allowed data, permitted actions, and maximum budget before designing the loop. Make each action auditable and distinguish failed, completed, and unknown outcomes. When approval is needed, show the concrete action and its consequences rather than asking for blanket permission.

Try it yourself

When would a fixed workflow be preferable to an agent loop?

Key takeaways

  • Explicit success and budget limits
  • Autonomy should be bounded by the user’s intended scope.
  • Check the assumptions with a small example before applying this idea to a larger system.

Check your understanding

0/2 checked

Use feedback to learn. Quiz scores and lesson completion are tracked separately.

1Which requirement helps an agent stop safely?
2True or false: A fixed workflow can be preferable when the steps are predictable.
Go to lesson completion

Further reading

Original papers and reference material for this school. External resources may be in English and require internet access.

MCP architecture overview (opens a new tab)OWASP: LLM prompt injection prevention (opens a new tab)

Finish this lesson

Mark this lesson complete when you’re ready to continue.

Start with a question

Introduction to AIAI FoundationsA brief history of AIAI FoundationsTypes of AIAI FoundationsAI, ML, and deep learningAI FoundationsUnderstanding generative AIAI FoundationsEthics, limitations, and responsibilityAI FoundationsLinear algebra for learning systemsMathematics for AIVectors, matrices, and similarityMathematics for AICalculus: measuring changeMathematics for AIDerivatives and gradientsMathematics for AIProbability and statisticsMathematics for AIOptimization and objectivesMathematics for AI
K to open · Escape to close