Session 1
AI 3010, advancedDesigning agents
Define what an agent is, and design one before writing any code. Participants will build a working vocabulary for the field, from harnesses and human in the loop to retrieval-augmented generation and frontier models; see an agent as reasoning, memory and context, tools, actions and triggers; place agents on a spectrum from fixed agentic workflows to highly autonomous systems, through examples from across the company; and define an agent of their own on the Agent Canvas, the use case they will build for the rest of the course.
60 minutes
Homework due before your sitting of session 2 on 23 October 2026
Recording
This browser blocks the SharePoint player, even when you are signed in.
Watch the recording in SharePointOpen in SharePoint — use this if the player above is blank, or asks you to sign in.
Captions and a transcript are available in the SharePoint player.
Homework
Due before your sitting of session 2 on .
- Task
- Identify, define and design one agentic use case of your own, at work or outside it, by filling in both pages of the Agent Canvas template. It is the agent you will build for the rest of the course, though you can change it later. At the start of session 2, one or two volunteers will share their canvas.
- Deliverable
- Your completed Agent Canvas, in PowerPoint.
- File name
{lastname}-{firstname}-AI3010-Week1.pptx- Submit to
- Homework submissions folder
Every submission is entered into a draw for exclusive program swag, awarded at the end of the semester.
Notes
The first session set out what the course covers, built a shared vocabulary, defined what an agent is, and introduced the Agent Canvas, the tool for designing the agent each participant will build over the rest of the course.
The plan for the course
The five sessions build on one another:
- Designing agents: this session.
- Building an agent from scratch: a harness written in Python, talking to a model running on your own machine through Ollama or a similar service, with no framework. The point is to learn what a harness does and how a model is called through an API. Instructions for installing what you will need are sent ahead of the session.
- Using agentic frameworks: LangChain and LangGraph, the framework Amadeus has chosen. Python is the course’s language, but the principles are the same in other frameworks, such as Microsoft Agent Framework in C#.
- Deploying agents to the cloud with Microsoft Foundry, formerly Azure AI Foundry, with a guest professor. Foundry is used because it is the simplest place to deploy to, and anyone with a Visual Studio subscription has an Azure sandbox to try it in. It is not where Amadeus deploys its own agents.
- Improving agent quality: evaluations, guardrails, and keeping an agent within the bounds of what it is allowed to do.
Each of these is a large subject. The sessions give a grounding in each, and the homework is where to go deeper.
The course’s textbook is Building Applications with AI Agents: Designing and Implementing Multiagent Systems by Michael Albada. This session draws on its first chapter. The book shapes the arc of the course rather than being followed line by line, and some sessions draw on other sources entirely. Copies are in the course’s Teams folder.
Vocabulary
The terms in this field change from one week to the next. The session pinned down a few of the ones this course relies on.
- AI engineering is building applications on top of models, and the models themselves. Chip Huyen’s book AI Engineering is a good introduction. Building agents, as this course does, is AI engineering.
- Agentic engineering is using agents to build software: directing GitHub Copilot, Claude Code or Kiro, and working with it as it goes. The two are easily confused because they use the same technology underneath, but they are different activities. AI 2010 is the course on agentic engineering.
- A harness is the code wrapped around a model that lets it do something. A model on its own takes data in and gives data back; it cannot edit a file, send an email or run a command. The harness is its hands. GitHub Copilot, Claude Code, Codex, Cursor and Kiro are all harnesses, and so is a chatbot. Choosing a Claude model in GitHub Copilot is not using Claude Code: the harness is Copilot, and the model is Claude. Harnesses differ in their system prompts, in the workflows they encourage, such as Kiro’s spec-driven development, and in who pays for the model, so the same model can give different answers in different harnesses.
- Human in the loop, sometimes written HITL, is a checkpoint where an agent stops and asks a person before it acts: the prompt asking whether it may change a file is one.
- Retrieval-augmented generation, or RAG, lets a model answer questions about a large body of content without reading all of it every time. Pasting a whole document into a chat works for one document, but every page is paid for in tokens on every question, it is slow, and a model given too much context starts to lose track and is more likely to hallucinate. RAG splits the content into chunks and stores them in a vector database, so that only the passages relevant to a question are retrieved.
- A frontier model is a large language model from one of the labs at the leading edge, such as OpenAI’s GPT models, Anthropic’s Claude, Google’s Gemini, xAI’s Grok, DeepSeek, Meta’s Llama and Alibaba’s Qwen. Some have open weights; others are only available as a paid service.
- A deterministic program gives the same output for the same input every time. A model is non-deterministic: asked the same thing twice, it can answer differently.
What is an agent?
Almost everyone has a different idea of what an agent is, and settling on a definition is hard while the field is so young. This course uses the one from Russell and Norvig’s Artificial Intelligence: A Modern Approach, the standard university textbook:
An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators.
It observes, reasons, acts, and reacts to changes in what it observes. Not everyone will accept that. Andrew Ng, a pioneer of modern AI, a professor at Stanford and a co-founder of Coursera, suggested side-stepping the argument by calling a system agentic: in the spirit of an agent, if not everyone’s idea of one, much as an API that follows most of REST’s principles is called RESTful.
Frontier models are what make today’s agents capable. They can understand and respond in natural language, in many languages; keep track of context over a long interaction; produce structured output and code; call tools natively; and plan adaptively, reflecting on and refining their own answers.
The agent equation
An agent, broadly, combines:
- Reasoning: deciding what to do next, and reviewing its own work.
- Memory and context: information from relevant documents or data, and the ability to store what it has dealt with and recall it later.
- Tools: APIs, a RAG system, documents, services, or even a screen it operates on your behalf. The range of tools is limited only by imagination.
- Action: doing something in response to what it has observed.
- Triggers: what wakes it up, such as an email arriving in an inbox.
Robotic process automation (RPA) is an older technology that is related but is not the same thing. It scripts the same steps every time, such as copying a value from one screen into another: automation without reasoning.
A spectrum of autonomy
Agents range from barely autonomous to highly autonomous.
- Less autonomous agents are usually called agentic workflows. Their steps are fixed in advance and their tool use is hard-coded; the model’s only freedom is in what it generates. Drafting a reply to an email is an example.
- Highly autonomous agents decide for themselves which tools to use and how to approach a problem. GitHub Copilot, Claude Code and Kiro work this way: given a broad problem, they investigate, search the web unprompted, and come back with solutions their user might not have thought of. They still run within guardrails.
- Semi-autonomous agents sit between the two, which is where most AI-assisted software development is today.
This course works mostly at the less autonomous end. Part II may go further.
Three examples
The three examples come, with some changes, from Andrew Ng’s course on agentic AI at DeepLearning.AI.
Processing invoices. Vendors email invoices, usually as PDFs, to a shared mailbox. Each arrival triggers the agent. The PDF is first converted to text, because the format was built for display, not for being read by a program, and the text goes to a model with instructions and access to a tool for updating the invoicing database. The model finds the required fields, such as the biller, their address, the amount and the due date, and calls the tool to create the record. Most of the work happens before the model is involved at all. This kind of document processing used to depend on optical character recognition and on telling the software where on the page each field would be, and models are transforming it.
Answering a customer. An author emails their publisher to complain that the wrong artwork was printed on their latest book, and asks for it to be recalled and reprinted. The agent passes the email to a model with a tool for querying past print jobs, to check the complaint against the records. A second call to the model, with guidelines on what the reply must cover, drafts a response. A person then reviews it, edits or sends it, and decides on anything the agent should not be trusted to do, such as reprinting thousands of books.
Writing an essay. Asked for an essay in a single prompt, a model gives a surface answer: a zero-shot prompt with little context rarely gets a good result, just as a one-line brief to a colleague rarely does. A reflective loop does better. The agent writes an outline, searches the web for material, integrates it and writes a first draft. A reviewing sub-agent with its own guidelines critiques the draft, and the first agent revises the sections that need it before producing the final essay. This is much what a coding agent does when it is asked for a new feature.
Agents already in use at Navitaire
- An agent in a Markdown file. A Markdown file of instructions in a repository’s agents folder can be chosen from GitHub Copilot’s agent menu, and Copilot then behaves as, for example, a C# code reviewer. That is technically an agent, and it was covered in AI March Madness, but it is not what this course builds. GitHub Copilot’s code review has since been turned on, and can be given the same kind of instructions in a configuration file in a repository.
- The Apollo transformation. Accenture’s support for Navitaire includes GenWizard, a set of four agents built before the leap in model capability in late 2025, so most of it is deterministic automation. One assigns tickets and resolves them automatically against rules; one analyses tickets for patterns; one deduplicates and triages events. Only Quasar++ uses a model. It has a RAG system over the standard operating procedures, the documentation and past tickets and their resolutions, and before a person picks a ticket up it adds a summary and suggested resolutions to it in ServiceNow, leaving the decision to them. Confusingly, the project also uses RAG for red, amber and green status.
- Enrique. Ryan Lifferth inherited the management of Accenture contracts that run to thousands of pages across about twenty documents. He built Enrique, a RAG agent over them that runs only on his own machine, using Ollama and a local model, so that none of the contracts leave it. Each answer links to the document it came from, which is how its answers are checked. Ryan wrote it in Python by directing a coding agent, without being a Python developer, and it is close to what this course builds.
- Raya. A copilot built into AppCenter, becoming part of Amadeus Max for Travellers. It answers questions from Navitaire’s documentation and standard operating procedures, such as what to do during irregular operations. Connected to Navitaire’s systems through MCP servers, it will eventually change bookings too.
These agents are not only for engineers. A colleague in finance who had never written code built an agent to take on repetitive work after attending AI March Madness, and the top three entries in a worldwide hackathon held by Anthropic came from a doctor, a lawyer and an engineer.
Designing an agent: the Agent Canvas
There is little established guidance on designing an agent yet, much as in the early days of software before requirements or modelling practices were settled. The Agent Canvas borrows the idea of the Business Model Canvas, which sets out a business concisely on a single page, and applies it to an agent. It has nine boxes:
- Mission: the work the agent is responsible for, and the outcome expected of it.
- Beneficiaries: who receives the value, such as a support team freed to spend more time with its most valuable clients.
- Value proposition: why the agent should exist.
- Impact: that value quantified, as revenue or as time saved. Estimate time at the fully loaded cost of $200 an hour rather than your own rate, and multiply it by the number of people it would help.
- Triggers: what starts the agent, such as an email arriving.
- Context and memory: what it needs to know and remember, such as the print jobs database, or how each customer likes to be contacted. A RAG system can provide some of this, as something the agent consults rather than something it has to be.
- Tools: what it needs access to, such as web search, an API, or a chat or voice interface for talking to people.
- Orchestration: how autonomous it is, how much it reasons, and whether it works with other agents.
- Evaluation: what success looks like, and how it will be measured.
The second page maps the agent’s workflow as a diagram. No particular notation is needed: boxes and arrows are enough.
Questions from the session
When is one agent enough? When one agent handling many kinds of task starts to give poor results. Think of it as a team: someone who is expected to be a business expert, a software architect, an SRE and a customer support specialist at once is hard to find. An agent is the same. Split the work among specialist agents, with an orchestrating agent coordinating them, and the need for it becomes clearer the more deeply an agent is designed.
Coding agents start sub-agents I never see. How can I keep track of them? Harnesses such as Claude Code and GitHub Copilot do start other agents in the background, and their activity is generally recorded in logs that can be audited. Making an agent’s activity understandable to the business, to security and to legal, and traceable when it does something it should not, is part of session 5.
Can the homework be an existing agent, such as the Azure SRE agent? It should be designed from scratch, but the idea need not be original: an SRE agent of your own, with what it can access and what it does defined on the canvas, is fine. Working through how an agent is made is what lets you understand other people’s agents, and fill the gaps where no commercial agent exists.
How should security be considered? From the start, especially for an agent with access to personal data such as passenger records, or to business-critical systems. Give it only the access it needs. Raya, for example, uses role-based access control so that it neither reveals information to people who should not see it nor lets them change what they should not. Security is not one of the canvas’s nine boxes, but note it in your design. Reports of agents breaking out of their environments are worth reading critically: the details often show weak sandboxing, and independent researchers are a useful check on companies with a stake in the story.
Do models really reason? A participant pointed out that a model produces its output statistically from its training, and that treating it as if it thinks like a person can leave holes in an agent’s design, its security included. The course will not go deep into how models work, but the presenters will share books on the subject, and a special session on it is possible. Suggestions for special sessions, or anything else you would like to see, are welcome on Teams.