LangChain Agents: Build Your First One
Build a simple agent in Python with LangChain, one part at a time, on a free local model. Add tools, structured answers, short-term and long-term memory, search over your own notes, guard rails and streaming to one tea stall assistant. For beginners who know basic Python.
Who it is for
Python beginners and developers who want to understand how an agent works by building one themselves, without a paid API key.
Before you start
- Basic Python (functions, lists, dictionaries, classes) and using a terminal
- A computer with about 8 GB of RAM and 6 GB of free disk space
What you will be able to do
- Call a chat model and give it Python functions as tools
- Build an agent with create_agent and read each step it took
- Get typed objects back from a model and check them in code
- Add short-term memory per conversation and long-term memory per person
- Search your own notes from an agent and handle questions they cannot answer
- Add call limits and human approval before risky actions, and stream the reply