The State and Observer Patterns in a Python Agent Loop
LangGraph from Scratch, Phase 7: a loop that calls the model and runs tools until it answers, and a way to watch it run.

Search for a command to run...
Articles tagged with #llm
LangGraph from Scratch, Phase 7: a loop that calls the model and runs tools until it answers, and a way to watch it run.

LangGraph from Scratch, Phase 6: building the embedder, the vector store and the retriever as three separate pieces.

LangGraph from Scratch, Phase 5: building Sequence, Branch, Parallel and Retry as steps.

1) Core Problem An LLM is a frozen text predictor trapped in its training data. It cannot check today's weather, query a private database, or execute deterministic math. The Problem: How do we bridge

Core Idea How can a machine generate useful human language without being explicitly programmed for every sentence? The answer is not the model knows language like a person. The answer is: it learns
