Action-Observation Loop
Domain: Prompt Engineering
π― Motivation
In ReAct, the model takes an action, observes the result, then reasons about what to do next. This loop continues until the task is done.
π Concrete Example
Loop: 1) Think: βNeed stock price.β 2) Act: get_stock(AAPL). 3) Observe: β$185.50β. 4) Think: βPrice is up 2%. Now summarize.β 5) Act: respond. The loop drives the agent forward.
π Analogy
A scientist running experiments - hypothesize (think), experiment (act), observe results (observe), hypothesize again. The action-observation loop is the scientific method applied to AI agents.