in progress
ReAct Agent From Scratch
A ReAct (Reasoning + Acting) agent built in plain Python, without agent frameworks.
A ReAct (Reasoning + Acting) agent built in plain Python, without agent frameworks.
A ReAct (Reasoning + Acting) agent built in plain Python, without agent frameworks. It switches between Anthropic, OpenAI and local Ollama models through a single chat function, calls tools in a Thought → Action → Observation loop, and handles malformed model output and tool errors gracefully. It is built to understand what agent frameworks do under the hood, and is later rebuilt with LangChain for comparison.
pytest.Python · uv · pytest · Anthropic API · OpenAI API · Ollama
In progress. Source and updates are in the public repository.