Build an AI agent that can use tools: web search, code execution, file reading, API calls. Implement the ReAct pattern with thought/action/observation loops.
agenttoolsreact-patternfunction-calling
Objectives
Implement the ReAct (Reason + Act) agent loop
Create tools: web search, calculator, code runner
Display the agent's reasoning chain transparently
Handle tool errors gracefully with retries
Add memory for multi-turn interactions
Hints
Use OpenAI function calling for structured tool use
Each tool needs: name, description, parameters, execute function