{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "ReAct",
 "ref": "ReAct#3361",
 "hash": "sema:ReAct#mh:SHA-256:3361fd75537995da1d70c0f60b9b8bd01c44bad9e2596a81fa059b7c6c3fba83",
 "stub": "3361",
 "layer": "Mind",
 "type": "Reasoning",
 "summary": "Interleaved thought-action-observation cycle",
 "mechanism": "An interleaved reasoning-action loop where the agent cycles through Thought (reason about the situation), Action (invoke a tool or take a step), and Observation (process the result). Unlike pure Chain#3ba0-of-Thought which reasons then answers, ReAct interleaves reasoning with environmental feedback, allowing the agent to adjust plans based on real-world results. It interleaves reasoning traces for a Task#a850 with ToolInvoke#1096 execution, updating the context with observation results.",
 "invariants": [
  "Action based on reasoning",
  "Cycle of Thought-Action-Observation"
 ],
 "parameters": {},
 "signature": [],
 "preconditions": [
  "Environment access",
  "Goal"
 ],
 "postconditions": [
  "Goal reached or deemed impossible"
 ],
 "failure_modes": [
  "Observation Blindness: Agent#e127 ignores observations and follows initial plan.",
  "Loop#37f9 Explosion: Endless thought-action cycles without termination.",
  "Action CognitiveBias#c8a4: Jumping to actions without sufficient reasoning."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "ReAct",
 "builds_on": [
  {
   "alias": "loop",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Loop",
   "ref": "Loop#37f9",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Loop"
  },
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  },
  {
   "alias": "chain",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Chain",
   "ref": "Chain#3ba0",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Chain"
  },
  {
   "alias": "cognitive_bias",
   "relation": "references",
   "library": "bootstrap",
   "slug": "CognitiveBias",
   "ref": "CognitiveBias#c8a4",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias"
  },
  {
   "alias": "tool_invoke",
   "relation": "composes_with",
   "library": "bootstrap",
   "slug": "ToolInvoke",
   "ref": "ToolInvoke#1096",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/ToolInvoke"
  },
  {
   "alias": "task",
   "relation": "accepts",
   "library": "bootstrap",
   "slug": "Task",
   "ref": "Task#a850",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Task"
  }
 ],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "Reflexion",
   "ref": "Reflexion#c5b1",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Reflexion"
  }
 ],
 "used_by": [
  {
   "slug": "EventReact",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/EventReact"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/ReAct",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/ReAct.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
