Building Autonomous AI Agents: Tool Calling, State Machines, and ReAct Loops · armeltechfun