Skip to content
Jobs Netverks

Lesson

Step 1/36 3% through track

intro

What an AI agent is

Last reviewed Oct 2, 2026 Content v20261002
Track mode
none
Means
Read / quiz
Reading
~4 min
Level
beginner

This lesson

An orientation to the AI Agents track—concepts, vocabulary, and how you will practice next.

You need a clear map of the AI Agents track so concepts and tooling fit together.

You will apply What an AI agent is in contexts like: Support workflows, research assistants, code agents, and any product that lets a model call an API.

Study explanations, case studies, and MCQs—this topic is read/quiz focused without a code runner. Also read the interview prep blocks.

When prerequisites for this topic are met and you are ready for focused study.

How this AI Agents track works

  • Read and then write — each lesson asks for a check you can show: an input, a pass rule, and a failure case.
  • Python is local — sketches run on your machine. This track does not pretend the browser trained a model.
  • Prerequisites — comfort with Python and the Data Science habit of holding out data you do not train on.
  • Pair with — AI for vocabulary and Generative AI when the system calls a language model.

Software that chooses actions, calls tools, and checks results until a task is done or a person stops it.

Install on your device (macOS, Linux, Windows)

Install Python 3.11+ locally for notebooks and frameworks; the on-site playground uses the dev runner when enabled.

macOS

  1. brew install python@3.12 or install from python.org (check “Add to PATH” on installers).
  2. Create a project folder: mkdir ~/python-practice && cd ~/python-practice.
  3. python3 -m venv .venv && source .venv/bin/activate
  4. pip install --upgrade pip

Linux

  1. Debian/Ubuntu: sudo apt update && sudo apt install -y python3 python3-pip python3-venv
  2. Fedora: sudo dnf install -y python3 python3-pip
  3. python3 -m venv .venv && source .venv/bin/activate
  4. pip install --upgrade pip

Windows

  1. Install from python.org and enable Add python.exe to PATH.
  2. Or: winget install Python.Python.3.12
  3. PowerShell: py -3 -m venv .venv; .\.venv\Scripts\Activate.ps1
  4. pip install --upgrade pip

Verify: python3 --version (or py --version on Windows) shows 3.11+.

Run code on this site (Backend & language playgrounds)

  1. Clone or open this project locally; copy .env.example to .env.
  2. Ensure LEARNING_RUNNER_ENABLED=true and LEARNING_RUNNER_URL=http://127.0.0.1:9999/v1/execute.
  3. Terminal 1: php artisan serve (or composer run dev for Laravel + Vite + runner together).
  4. Terminal 2: npm run runner — keep it running while you click Run on server.

What an AI agent is on the AI Agents track. An agent is a model plus a loop that can observe a situation, choose an action, and look at the result. A chatbot that only writes a reply is not an agent. An agent is one when the system is allowed to do something in the world, such as search, write a file, or call an API, and then decide what to do next from what came back.

This is the first lesson. Read it before you change any parameters or call any tool.

The idea in practice

Separate three pieces: the policy (the model that chooses), the tools (the only actions allowed), and the stop rule (when the loop ends). Write those three down before you write code. If you cannot name the stop rule, you do not have an agent yet. You have an open-ended script.

A concrete check

goal = {
    'track': 'AI Agents',
    'lesson': 'What an AI agent is',
}
checks = [
    'input available at decision time',
    'score matches the real decision',
    'failure case written down',
]
print(goal['lesson'])
for item in checks:
    print('-', item)

Run the sketch locally if you have Python. The printout is a reminder of the checks, not a trained model. Replace the strings with the real inputs from your own example before you treat it as a design.

What usually goes wrong

People call any chat box an agent. If the model cannot take an action and read the result, it is a generator, not an agent. When this happens, stop adding parameters or tools. Fix the check, the data, or the permission, then run the same example again.

What to write down

  • The input you are allowed to use at decision time.
  • The output and the score or pass rule.
  • One failure you will test on purpose.
  • What you will not claim the system can do.

Practice

Pick one task you do weekly. List the observation, the allowed actions, and the sentence that means the task is finished.

Self-check

  1. Say What an AI agent is in one sentence that mentions an input and an output.
  2. Name the failure mode in this lesson and the check that would catch it.

Done when: you can explain this lesson without the page open, and you have a written failure case.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What part of this lesson needs a second read?
  • What would you try differently in a real project?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump