Recorded lessonsSelf-pacedCapstone project

AI Agent Engineering: Build, Test and Deploy AI Agents

Build, test, evaluate and deploy AI agents the way an engineering team does: tools, the agent loop, retrieval, memory, the Model Context Protocol, workflows, evals and a live capstone

11 modules · 85 video lessons · about 15 hours

I'm interested

About the course

A hands-on course on AI agents and AI engineering in eleven modules, for students and freshers who know basic Python. It starts from what an agent is (a model, tools and a loop) and when not to build one, then builds every part by hand before any framework: a dependable model client with structured output and cost logging, well designed and tested tools, the agent loop with stopping rules and a budget, retrieval that is measured, memory and context kept inside a budget, and servers for the Model Context Protocol. Then workflows and multi-agent systems as graphs with checkpoints and human approval, evaluation with golden sets and graders, tracing, defence against prompt injection, and shipping the agent as a deployed service.

One project grows through the course: the Campus Helpdesk agent, which answers fee, timetable and notice questions and raises a request only after approval. Every module ends with a mini build that adds to it. The course ends with a capstone agent of your own (the Placement Prep Agent, a Campus Helpdesk for your own college or the Shop Operations Agent), live on the internet, evaluated before and after, and scored against a 100-point rubric, then a final test.

Every code example is run before it is published, and the lessons depend on no single AI provider: every model call goes through a small client you write yourself, and every lab runs on a hosted free tier or a small open model, so they stay true as products change.

Who it is for
Students and freshers who finished LLMs and Generative AI for Beginners, or who can already write basic Python (functions, lists, dictionaries, reading an error). You have used a chat assistant and may have called a model from code once. The first five lessons need no code; from lesson 6 you run code on a laptop with 8 GB of memory, or set up in Google Colab in a browser.
Format
Recorded video lessons of about ten minutes with slides, worked examples and narration in English, Hindi and Odia. Slides, code and quizzes are in English. Not a live class.
Length
11 modules · 85 video lessons · about 15 hours. About an hour and a half a day: a lesson of about ten minutes, typing and running its code, and the lesson quiz.
Free lessons
All 7 lessons of module 1. Their videos, notes and quizzes are open now.

What you will be able to do

  • Explain what an agent is, tell it from a chatbot and a fixed workflow, and decide when not to build one.
  • Call a model as dependable software: a provider independent client, structured output validated against a schema, retries, timeouts, and the cost of every call logged.
  • Design, write and test tools a model uses correctly, with safe handling of tools that change something.
  • Write an agent loop by hand, with stopping rules, a budget, state you can save and a log of every step, and debug a run that went wrong.
  • Build retrieval an agent can use: chunking, embeddings, hybrid search, reranking, citations, and a measured hit rate on a golden set.
  • Manage context and memory: history within a budget, long term memory the user controls, and caching.
  • Use and build Model Context Protocol servers, and defend an agent against an untrusted one.
  • Build workflows and multi-agent systems as graphs with checkpoints and human approval, and choose the simplest design that works.
  • Evaluate an agent with a golden set and three kinds of grader, trace its runs, test it against prompt injection, and run the evals on every change.
  • Ship an agent as a deployed service with an API, a database, budgets, monitoring and a privacy notice.
  • Finish a capstone agent scored against a 100-point rubric, live on the internet, with its eval scores recorded, and take the final test.

Curriculum: 11 modules, 86 lessons

85 video lessons, about 15 hours in all. Open a module to see its lessons.

Module 01 From chatbots to agents 7 lessons

What an agent is (a model, tools and a loop), how it differs from a chatbot and from a fixed workflow, when not to build one, how to read an agent's run step by step, what an AI engineer does at work, and your first small agent running on your own laptop.

  1. What an agent is: a model, tools and a loop Free 9 min

    Define an agent as a model that chooses its own next step using tools, in a loop, until the task is done, and pick the agents out of six everyday AI products.

  2. Chatbot, workflow or agent: three ways to build one feature Free 10 min

    Build the same feature three ways on paper (a fee enquiry for a college): one prompt, a fixed chain of steps, and an agent, and say what each costs in money, speed and control.

  3. When not to build an agent Free 9 min

    Apply a four question test (is the path known, is a mistake costly, is it worth the money, can you check the result) and judge three agent ideas: one a simple program does better, two that should not be built.

  4. Reading an agent run, step by step Free 10 min

    Follow a recorded run of a helpdesk agent through its messages, tool calls and results, and find the step where it went wrong.

  5. What an AI engineer does: the role, the skills, the interview Free 9 min

    Tell an AI engineer from a data scientist and a backend developer by what each one hands over, and map each skill an AI engineer needs to the module of this course that builds it.

  6. Setting up: Python, a project, secret keys and a local model Free 11 min

    Create the course project with a locked list of packages, keep the API key in an environment file that is never committed, and run a small open model in Google Colab as a free fallback.

  7. Your first agent in forty lines Free 11 min

    Write a tiny agent with one tool (a calculator) and a loop, run it on three questions, and print every step it took.

Module 02 Calling a model like an engineer 8 lessons

The model call as a piece of software you can rely on: messages and stop reasons, a small client of your own that works with any provider, structured output checked against a schema, repair and fallback when the output is wrong, tokens and cost in rupees, streaming, and errors handled properly.

  1. Locked: The messages API, properly: roles, turns and stop reasons 10 min

    Build a conversation as a list of messages, read why a reply stopped (finished, length, tool call), and predict the reply's shape for four requests.

  2. Locked: A thin client of your own: one function, any provider 10 min

    Wrap the model call in one typed function so the rest of the course never depends on a single provider, and switch between a hosted model and the local one with a setting.

  3. Locked: Structured output: a schema the reply must fit 11 min

    Describe the answer you want as a Pydantic model, ask the model to fill it, and reject a reply that does not validate instead of passing it on.

  4. Locked: When the output is wrong: retry, repair, fall back 10 min

    Handle a reply that fails validation in three steps (send the error back, retry once, fall back to a safe default) and count how often each step is used over the twenty sample notices.

  5. Locked: Tokens, the context window and cost in rupees 10 min

    Count the tokens of a request and a reply, log the cost of every call, and estimate a month's bill for a feature with a thousand users.

  6. Locked: Streaming: showing the answer as it is written 9 min

    Stream a reply piece by piece to the terminal, and explain why streaming changes how fast an app feels without changing how long it takes.

  7. Locked: Errors, rate limits and timeouts 10 min

    Classify failures as retry or do not retry, add backoff with a limit and a timeout to the client, and prove it with a test that fakes three failures in a row.

  8. Locked: Mini build: the Notice Extractor as a tested module 12 min

    Turn a college notice into validated fields (title, dates, amounts, who it applies to), with unit tests that run without a network and a cost log.

Module 03 Tools: giving a model hands 8 lessons

How function calling really works, and how to design tools a model uses correctly: names, descriptions and schemas, results and errors it can recover from, the difference between reading and changing the world, choosing among many tools, and testing every tool without a model.

  1. Locked: How function calling works on the wire 10 min

    Trace one tool call through its four messages (the tool list, the model's request, your program's result, the final answer) and say which side runs the code.

  2. Locked: Your first tool: a name, a description and a schema 10 min

    Write a timetable lookup as a typed Python function, generate its schema from the type hints, and register it with the model.

  3. Locked: Tool design: what makes a tool easy for a model to use 11 min

    Improve three badly designed tools (vague names, too many optional arguments, unclear units) and measure the difference in correct calls over twenty questions.

  4. Locked: Tool results and errors the model can recover from 10 min

    Return short, structured results and error messages that say what to do next, and watch the model correct a wrong argument by itself.

  5. Locked: Read tools and write tools: side effects and dry runs 10 min

    Separate tools that only read from tools that change something, make a write tool safe to call twice, and add a dry run mode that shows what would happen.

  6. Locked: Many tools: choosing, combining and calling in parallel 10 min

    Give the model eight tools, see where it chooses badly, fix it by grouping and describing them better, and run two independent calls at the same time.

  7. Locked: Testing tools without a model 9 min

    Write unit tests for each tool's happy path, bad input and failure, so a broken tool is found by the tests and not by a user.

  8. Locked: Mini build: the Campus Helpdesk tool belt 12 min

    Build and test five tools for a college helpdesk (timetable, fee calculator, notice search, hostel rules, raise a request) on a small SQLite database.

Module 04 The agent loop 8 lessons

The loop written by hand, with no framework, so nothing is hidden: call, act, observe, repeat; when and how to stop; the system prompt of an agent; planning; state between steps; the ways agents fail; and a log of every step. Ends with the first version of the Campus Helpdesk agent.

  1. Locked: The loop by hand: call, act, observe, repeat 11 min

    Write the agent loop in plain Python (ask the model, run the tools it asks for, give back the results, repeat) and run it on a question that needs two tools.

  2. Locked: Stopping: done, step limits, budgets and asking the user 10 min

    Give the loop five ways to stop (the task is done, a step limit, a cost budget, a time limit, a question for the user) and show a run ending by each one.

  3. Locked: The system prompt of an agent 10 min

    Write an agent's system prompt in four parts (role, rules, how to use the tools, what to do when unsure) and compare two versions on the same ten tasks.

  4. Locked: Planning: think first, act, then check the plan 10 min

    Make the agent write a short plan before acting and revise it after a surprise, and say for which tasks a plan helps and for which it only adds cost.

  5. Locked: State: what the loop carries between steps 10 min

    Keep the run's state in one typed object (messages, results so far, steps used, money spent) so a run can be saved, inspected and resumed.

  6. Locked: How agents go wrong: loops, wrong tools, invented arguments 10 min

    Reproduce five common failures on purpose (repeating a call, picking the wrong tool, inventing an ID, stopping early, ignoring an error) and apply the fix for each.

  7. Locked: Logging every step: a trace of your own 10 min

    Record each step of a run as a structured log line (what was asked, which tool, how long, how much) and use the log to explain a bad run.

  8. Locked: Mini build: Campus Helpdesk agent, version 1 12 min

    Join the loop and the tool belt into an agent that answers fee, timetable and notice questions, stops within its budget, and logs its steps.

Module 05 Knowledge for agents: retrieval done properly 8 lessons

Retrieval as a tool the agent chooses to use: loading and chunking real documents (including Hindi and Odia text and tables), embeddings and a vector store, keyword, meaning and hybrid search, reranking, citations and honest refusals, and measuring whether the right passage was found.

  1. Locked: From a RAG pipeline to retrieval as a tool 10 min

    Compare always searching first with letting the agent decide when and what to search, and trace a question that needs two searches.

  2. Locked: Loading and chunking real documents 11 min

    Load PDFs, web pages and tables, split them into chunks that keep a heading with its text, and handle a notice written in Hindi or Odia.

  3. Locked: Embeddings and a vector store 10 min

    Turn chunks into embeddings with a small local model, store them in a vector store on disk, and find the five nearest chunks to a question.

  4. Locked: Keyword search, meaning search and hybrid search 10 min

    Show a question where keyword search wins and one where meaning search wins, then combine the two and compare the results.

  5. Locked: Reranking, and how many chunks to pass on 10 min

    Rerank the first twenty results, pass on the best five, and measure how answer quality and cost change with the number of chunks.

  6. Locked: Citations, grounded answers and saying not found 10 min

    Make every claim point to its source chunk, and make the agent say it did not find the answer instead of guessing.

  7. Locked: Measuring retrieval with a golden set 11 min

    Write thirty questions with the passage that answers each, compute how often the right passage is in the top five, and use the number to choose a chunk size.

  8. Locked: Mini build: the notice search tool 12 min

    Replace the helpdesk's simple notice search with a hybrid, reranked, cited search over two hundred notices, and record its score on the golden set.

Module 06 Memory and context engineering 7 lessons

What the model sees at every step decides what it does. Managing the context window as a limited desk: conversation history, long term memory of a user, notes and files as working memory, what happens when the context is too full, and caching to cut cost and delay.

  1. Locked: The context window is the agent's desk 10 min

    List everything that goes into one model call of an agent (system prompt, tools, history, results) and measure how many tokens each part takes in a real run.

  2. Locked: Conversation history: trimming and summarising 10 min

    Keep a long conversation inside a token budget by trimming old turns and summarising them, and test what the agent still remembers.

  3. Locked: Long term memory: facts the agent keeps about a user 10 min

    Store facts worth keeping (a student's branch, year and hostel) in a small database, recall them in a later session, and let the user see and delete them.

  4. Locked: Notes and files as working memory 9 min

    Give the agent a notes file it writes to and reads from during a long task, and show how that survives a context that is cleared.

  5. Locked: When context hurts: too much, too old, too noisy 10 min

    Show answer quality falling as irrelevant tool output piles up, then fix it by shortening results and clearing what is no longer needed.

  6. Locked: Caching: paying once for what repeats 9 min

    Cache the fixed start of the prompt and repeated tool results, and measure the saving in cost and time over one hundred runs.

  7. Locked: Mini build: the helpdesk remembers the student 12 min

    Add session history within a budget and a long term memory the student controls to the Campus Helpdesk, with tests for both.

Module 07 Connecting to real systems: the Model Context Protocol 7 lessons

The open standard for plugging tools and data into AI apps. Why a protocol exists, its parts (hosts, clients and servers; tools, resources and prompts), using an existing server, building your own, authentication and permissions, and the security risks of trusting someone else's server.

  1. Locked: Why a protocol: every app times every tool 9 min

    Explain the problem a common protocol solves with the charger analogy, and count the integrations needed with and without one for four apps and six tools.

  2. Locked: The protocol in pictures: hosts, clients and servers 10 min

    Name the three roles and the three things a server offers (tools, resources, prompts), and follow one request from the app to the server and back.

  3. Locked: Using an existing server from your agent 10 min

    Connect the agent to a ready made file system server, list the tools it offers, and complete a task with them.

  4. Locked: Building your own server 11 min

    Expose two of the helpdesk tools as a server with typed inputs and clear descriptions, and test it with the protocol's inspector before any agent touches it.

  5. Locked: Local and remote servers, sign in and permissions 10 min

    Run a server as a local process and over HTTP, protect the remote one with a token, and limit what each tool is allowed to do.

  6. Locked: Trusting a server: what a tool description can do to your agent 10 min

    Show how a hostile tool description or result can steer an agent, and apply three defences (review, allow lists, least privilege).

  7. Locked: Mini build: the college timetable server 12 min

    Publish the timetable and notice search as a server that both your agent and a desktop AI app can use, with a README another student can follow.

Module 08 Workflows and multi-agent patterns 8 lessons

From one loop to designed systems. The five workflow patterns, building them as a graph with LangGraph (nodes, edges, state), checkpoints to pause and resume, a human approving before anything is changed, subagents, and an honest look at when several agents are worse than one.

  1. Locked: Five workflow patterns 11 min

    Draw the chain, the router, parallel work, the orchestrator with workers and the writer with a reviewer, and choose a pattern for each of five tasks.

  2. Locked: Graphs: nodes, edges and state 11 min

    Build a three node graph with LangGraph, with typed state passed along the edges, and compare it line by line with the loop written by hand.

  3. Locked: The helpdesk agent as a graph 10 min

    Rebuild the Campus Helpdesk loop as a graph with a router in front, and check with the module 4 tests that it behaves the same.

  4. Locked: Checkpoints: pause, resume and replay 10 min

    Save the state after every node, stop a run halfway, resume it later, and replay a failed run from the step before the failure.

  5. Locked: Human in the loop: approval before a write 10 min

    Pause the graph before the raise a request tool runs, show the person what will happen, and continue or cancel on their answer.

  6. Locked: Subagents: when to split the work and how to hand over 10 min

    Give a research task to a subagent with its own context and tools, pass back only a short result, and say what was gained and what it cost.

  7. Locked: Multi-agent systems: the costs and the failure modes 9 min

    Compare one agent with a three agent team on the same task for quality, tokens and time, and list the ways teams fail that single agents do not.

  8. Locked: Mini build: a research and report workflow with a reviewer 12 min

    Build a workflow that plans, searches, writes a cited one page report and has a reviewer node send it back once, with a checkpoint at each stage.

Module 09 Testing and trust: evals, tracing and guardrails 9 lessons

How you know an agent works, and how you keep it safe. Golden sets for agents, three kinds of grader, scoring the path and the cost as well as the answer, tracing, prompt injection against agents, guardrails and least privilege, and evals that run before every change.

  1. Locked: Why agents need evals: same input, different runs 9 min

    Run one task ten times, see the answers and paths differ, and explain why a single try proves nothing about an agent.

  2. Locked: A golden set for an agent 10 min

    Write thirty tasks with what a correct outcome looks like (the answer, the tools that should be used, what must not happen), including ten the agent should refuse.

  3. Locked: Graders: code checks, a model as judge, a person 11 min

    Grade the same runs three ways, measure how often the model judge agrees with you, and choose the cheapest grader that can be trusted for each kind of task.

  4. Locked: Scoring the path, not only the answer 10 min

    Score a run on its tool calls, number of steps, cost and time as well as the final answer, and find a run that got the right answer the wrong way.

  5. Locked: Tracing: seeing inside a run 10 min

    Send spans for every model call and tool call to an open source tracing tool, and use the trace view to find the slow step and the expensive step.

  6. Locked: Prompt injection against agents 11 min

    Attack your own agent directly and through a poisoned document and a poisoned tool result, and record which attacks made it act.

  7. Locked: Guardrails: input checks, output checks and least privilege 10 min

    Add checks before and after the model, give each tool the smallest permission it needs, and require approval for anything that cannot be undone.

  8. Locked: Evals in CI: no change without a score 10 min

    Run the eval suite automatically on every change, fail the change when the score drops, and keep a table of scores over time.

  9. Locked: Mini build: the helpdesk eval suite and a red team hour 12 min

    Give the Campus Helpdesk a thirty task eval suite with three graders, attack it for an hour with a checklist, fix what broke, and record before and after scores.

Module 10 Shipping an agent 8 lessons

From a script on your laptop to a service other people use: an API with streaming, long tasks in the background, state in a database, budgets and routing between a small and a large model, containers and deployment, monitoring real use, and privacy and responsible use.

  1. Locked: An API around the agent: requests, sessions and streaming 11 min

    Put the agent behind a FastAPI service with a session per user, stream its steps and its answer to the caller, and document the endpoints.

  2. Locked: Long tasks: background jobs and status 10 min

    Run a task that takes minutes as a background job, let the caller ask for its status, and cancel it cleanly.

  3. Locked: State in a database, and many users at once 10 min

    Move sessions, memory and checkpoints from files to a database, and show two users running at once without seeing each other's data.

  4. Locked: Cost and latency: budgets, routing and caching 10 min

    Set a budget per user and per task, send easy steps to a small model and hard ones to a large one, and measure the saving against the eval score.

  5. Locked: Containers and deployment 11 min

    Package the service as a container image, set its secrets outside the image, deploy it to a free tier host, and call it from your phone.

  6. Locked: Monitoring in production: traces, feedback and alerts 10 min

    Collect traces and a thumbs up or down from real use, add an alert on cost and on error rate, and turn three bad runs into new eval tasks.

  7. Locked: Privacy, responsible use and telling people it is an AI 10 min

    List what personal data the agent stores and why, add deletion on request and a clear AI notice, and write the page that says what it must not be used for.

  8. Locked: Mini build: the Campus Helpdesk, live 12 min

    Deploy the Campus Helpdesk with its API, database, budgets, tracing and eval suite, and write the README that lets someone else run it.

Module 11 Capstone: build, evaluate and deploy your own agent 8 lessons

An agent of your own from brief to live demo, in four milestones: tools and knowledge, the agent and its workflow, evals and a safety review, deployment and monitoring. Scored against a 100 point rubric, then presented as a portfolio project, then the course final test.

  1. Locked: The capstone brief 12 min

    Read the brief: the three project choices, the must haves, the four milestones, the 100 point rubric and what to hand in.

  2. Locked: Plan: users, tasks, tools and the golden set 11 min

    Write who the agent is for, the thirty tasks it must handle with expected outcomes, the tools and knowledge it needs, and what it must never do.

  3. Locked: Milestone 1: tools and knowledge 11 min

    Build and test the tools and the retrieval your agent needs, with a protocol server for at least one of them.

  4. Locked: Milestone 2: the agent and its workflow 12 min

    Build the agent as a graph with state, memory, budgets and an approval step before any write, and run it on ten of your tasks.

  5. Locked: Milestone 3: evaluate, improve and review for safety 12 min

    Score all thirty tasks, improve the weakest part, score again, run the injection checklist, and record the before and after numbers.

  6. Locked: Milestone 4: deploy and monitor 11 min

    Deploy the agent behind an API with tracing and a cost alert, and collect feedback from three real users.

  7. Locked: Presenting your project: demo, README, resume and interview 11 min

    Record a three minute demo, write the README and the one page report, write the resume lines, and answer the ten interview questions the project invites.

  8. Course final test Final test

    Fifteen mixed questions in 20 minutes across the course, no negative marking, to see which modules to revise before the AI engineer interview practice set.

Capstone project

You build, evaluate and deploy an agent of your own, in four milestones (tools and knowledge, the agent and its workflow, evals and a safety review, deployment and monitoring), and score it against a 100-point rubric: plan and golden set 10, tools 15, agent and workflow 15, knowledge and memory 10, evaluation 20, safety 10, deployment and monitoring 10, code quality 5, report and demo 5.

Projects (choose one, or propose your own)

  1. Placement Prep Agent: researches a company and a role, builds a study plan from your weak topics, tracks applications, and drafts (never sends) follow-up emails for your approval
  2. Campus Helpdesk for your own college: the course project rebuilt on the real notices, timetables and rules of your college, with requests raised only after approval
  3. Shop Operations Agent: for a family shop, answers stock and price questions from a database, drafts replies to customer messages, and prepares a reorder list for the owner to approve

Every project has

  • A written plan: who it is for, thirty tasks with expected outcomes, and what the agent must never do
  • At least four tools of your own, typed and tested, one of them served over the Model Context Protocol
  • Retrieval over your own documents, with citations and a measured hit rate
  • A workflow built as a graph, with a budget and a human approval before anything is changed
  • All thirty tasks scored before and after one round of improvement
  • A safety review: the injection checklist, least privilege, an AI notice and a privacy note
  • A live deployment with tracing and a cost alert
  • A README, a one-page report and a three-minute demo

Questions

Are these live classes?

No. Every lesson is a recorded video of about ten minutes with slides, worked examples and narration, so you study at your own pace. The lessons are written and checked by our team. This is different from our internships, which are taught live.

What is free?

The whole first module of each course: its videos, notes and quizzes are open now. The rest comes with the course.

Can I buy a course today?

Not yet. Enrolment opens soon. Leave your details in the form on the course page and we will write to you when it opens.

Which languages are the lessons in?

The narration is in English, Hindi and Odia. Slides, code and quizzes are in English.

Do I need to install anything?

Not to start. The first lessons run in a browser. The Python Full Stack course needs a laptop or a desktop from its third lesson on, and AI Agent Engineering from its sixth (its setup also runs in Google Colab in a browser), Cloud and DevOps Foundations from its sixth, and Cybersecurity Foundations and Coding Agent Engineering from their seventh; each course tells you what to install when you need it.

How is my work checked?

Lessons come with short quizzes. The capstone project is scored by you against a published 100-point rubric, and each course ends with a final test.

I'm interested