/ module 13 · Building with LLMs
Orchestration
A bare LLM is a text-in, text-out function. To build real applications you wrap it in a flow: routers decide what to do, tools take action, retrievers fetch knowledge, and memory persists across turns. This is what frameworks like LangChain and LlamaIndex are for.
By the end you can
- Name the parts of an LLM app: router, tools, retriever, memory
- Compose a flow that matches a type of question
- Explain why guardrails sit around the model
Try this first: Pick the 'Math agent' preset and press Run agent.
about 8 min hover ? for help
patterns
Components of an agent
Router classifies intent → pick a tool. Tools are typed functions the model can call. Memory stores past turns or facts. A loop lets the LLM call tools repeatedly until done.
tool / function call
Structured output the LLM emits to trigger an external action.
ReAct loop
Reason → Act → Observe → repeat until the agent answers.
guardrails
Checks on inputs and outputs: hide personal data (PII), enforce the expected format, block unsafe content.
Live lab · Compose & run an agent
Preset:
Flow (click a node to remove, or add below)
inputanswer
+ add:
Trace
(run the flow)
Final answer
(waiting)
Check yourself
Tick each one you could explain to a friend. If you can't yet, scroll back up and replay the lab.
Finished exploring?
Progress is saved only in this browser.