Loading course…
Loading course…
From LLM calls to real agents: graphs, state, workflows, persistence, tools, MCP, RAG, human-in-the-loop, memory and production patterns.
Based on the CampusX playlist · lessons written for this course
🎯 Practice
Mixed rounds, plus fresh AI questions on your weak spots
🎤 Mock interview
An AI interviewer with follow-ups, then a scorecard
🧐 Design review
Paste a design or code; get a senior engineer's review
What changes when an LLM stops answering and starts acting: goals, planning, tools and autonomy.
The parts of an agent: perception, reasoning, planning, tools, memory and the feedback loop.
Why chains struggle with loops, branching and state, and how a graph-based framework fixes that.
Graphs, nodes, edges, state, reducers and how a run executes step by step.
Your first graphs: typed state, nodes that update it, and a straight line from START to END.
Fan-out and fan-in: branches that run at the same time and reducers that merge their results.
Routing with conditional edges: let the state or an LLM decide which node runs next.
Loops: generate, evaluate, improve, and stop conditions that keep them from running forever.
A chat graph with message state, the add_messages reducer and a model node.
Checkpointers and threads: remembering conversations, resuming after failures and replaying past states.
Putting a front end on the chat graph: session state, threads and rendering the conversation.
Sending tokens and updates as they're produced: stream modes and wiring them to a UI.
A sidebar of past chats: one thread per conversation, switching threads and restoring history.
Moving checkpoints from memory to a database so conversations survive restarts.
Tracing, debugging and evaluating LLM apps: runs, traces, datasets, evaluators and monitoring.
Tracing a graph in LangSmith: seeing each node, its inputs, outputs, latency and cost.
Giving the model tools: binding them, the tool-calling loop, ToolNode and tools_condition.
Using tools from MCP servers: the protocol, transports and loading MCP tools into an agent.
Retrieval as a tool: chunking, embeddings, a vector store and an agent that decides when to search.
Pausing a graph for approval or input with interrupts, then resuming it with the human's answer.
Graphs inside graphs: shared vs separate state, and when to split an agent into parts.
LLMs are stateless: context windows, short-term vs long-term memory and the trade-offs of each.
Keeping conversations inside the context window: trimming, deleting and summarising messages.
Remembering users across conversations: stores, namespaces, extracting and retrieving memories.
An agent that plans, researches and writes: orchestrator and workers, research tools and assembly.
Grading retrieved documents and falling back to web search when retrieval isn't good enough.
An agent that decides when to retrieve, checks its own answer for support and usefulness, and retries.