ReAct Cycle

ReAct (Reasoning + Acting) is the core operating mode of an agent: reasoning → action (tool call) → observation of the result → reasoning again. The cycle repeats until the task is completed.

Trajectory is a continuously accumulating history of messages (user / assistant / tool): with each LLM call, it sees the entire history along with a static prefix.

Agent context = static prefix + trajectory

Related: Agent cycle in code, Context as the agent’s eyes

⚠ изображение не найдено: react-cycle.svg