Plan, Act, Reflect: Does It Help a Small Model?
One example in the prompt took a small model from 2 of 6 to 6 of 6. Reflection added nothing.
Video #26 ยท AI agents and MCP
Steps in the video
Files
- agent.py (86 lines)
- compare.py (43 lines)
- tasks.py (9 lines)
- tools.py (27 lines)
Tested with
Python 3.12.15 | ollama==0.6.3, pydantic==2.14.1
What this does not show
Six made up shopping questions, one worked example that looks like them, one small model (llama3.2), one run at temperature zero. No larger model and no tool-choosing loop was tested.
Sources
Learning IT by Example.