Agent-Executor

LangBot Day 10: Agents and Tool Calling — Let the LLM Decide What to Do
reading time: 23 minutes

Recap: On Day 9, LangBot became a full RAG pipeline — every chat message retrieves relevant documents and the LLM answers from them. The /search command, list-mode routing, and regular chat all coexist. But there is a problem hiding in plain sight: the routing logic is hand-coded in if/elif blocks. LangBot doesn’t decide anything — it follows a script. Today we replace that script with an agent: an LLM that reasons about which tool to use, calls it, and responds — autonomously.