Courses/Track 2: Agent Architecture
2.1intermediate3h10 chapters

Tools, Tasks & Workflows

Build complex multi-agent workflows

Master tools, tasks, and workflows by building a restaurant ordering system with greeter, order taker, and feedback agents.

What You Build

Restaurant ordering system: greeter→order taker→feedback. Multi-agent workflow with handoffs, TaskGroups, prebuilt tasks.

Prerequisites

  • Course 1.1
Chapters
01

Workflow architecture

15m

When to use agents, tasks, or tools — and how they compose into workflows.

Agents vs tasks vs toolsWorkflow patterns
02

Building the greeter agent

15m

Build the greeter agent with on_enter() and tool-based handoff to the order taker.

Agent subclasson_enter()Tool-based handoff
03

Complex tool definitions

20m

Beyond decorators: programmatic tools, raw JSON schema, Toolset management, and ToolFlag options.

Programmatic toolsraw_schemaToolsetToolFlag
04

AgentTask: structured data collection

25m

Use AgentTask with typed results for structured data collection and form-like interactions.

AgentTask[T]Typed resultscomplete()
05

TaskGroup: multi-step flows

25m

Orchestrate multi-step flows with TaskGroup, handle regression, and summarize context between steps.

TaskGroupadd()RegressionContext summarization
06

Prebuilt tasks

15m

Use LiveKit's prebuilt tasks for common data collection patterns.

GetEmailTaskGetAddressTaskGetDtmfTaskWarmTransferTask
07

Agent handoffs & context

20m

Hand off between agents while preserving context, using on_exit() and AgentConfigUpdate.

on_exit()AgentConfigUpdateContext passing
08

State with userdata

15m

Manage cross-agent state with session.userdata for persistent conversation data.

session.userdataCross-agent state
09

Dynamic tool management

15m

Add, remove, and update tools and instructions dynamically based on conversation state.

update_tools()update_instructions()Dynamic behavior
10

Testing the workflow

20m

Test multi-agent workflows with is_agent_handoff() assertions and CI integration.

Multi-agent testingis_agent_handoff()CI

What You Walk Away With

Deep understanding of when to use tools vs tasks vs agent handoffs, plus a working multi-agent restaurant ordering system.