Codele / LLMs, RAG and agentic AI
Agents: think, act, observe
One reply is not enough for a bigger job. An agent is a model in a loop: it decides, uses a tool, reads the result and goes again. Pick a step limit and watch.
- An agent is a model in a loop: think (decide the next step), act (use a tool), observe (read the result), then repeat.
- The loop ends when the goal is met or the step limit is hit. The limit is a safety rail against endless loops and runaway cost.
- The notebook of earlier steps is fed back to the model each turn, so it knows what it already tried.
- Agents can misread results, pick the wrong tool or get stuck. Stopping early and saying so is better than guessing.
- This is a toy: a hand-written rule plays the model and the prices are made up. Real agents let the model choose each step.
Loading the playable lesson…