<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="drawio" compressed="false">
  <diagram id="p1" name="ReAct Agent Loop">
<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="g" value="" style="group;" vertex="1" connectable="0" parent="1"><mxGeometry width="700" height="173" as="geometry"/></mxCell><mxCell id="n1" value="Task / user&lt;br&gt;query" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#F8CECC;strokeColor=#B85450;fontSize=12;" vertex="1" parent="g"><mxGeometry x="10" y="27" width="100" height="36" as="geometry"/></mxCell><mxCell id="n2" value="Context&lt;br&gt;(history)" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=8;fontColor=#333333;strokeWidth=1.5;fontSize=12;fillColor=#F5F5F5;strokeColor=#999999;fontFamily=Times New Roman;" vertex="1" parent="g"><mxGeometry x="140" y="17" width="120" height="56" as="geometry"/></mxCell><mxCell id="n3" value="LLM&lt;br&gt;Thought" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#E1D5E7;strokeColor=#9673A6;fontSize=13;arcSize=12;" vertex="1" parent="g"><mxGeometry x="300" y="22" width="120" height="46" as="geometry"/></mxCell><mxCell id="n4" value="done?" style="rhombus;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontSize=11;fillColor=#FFFFFF;strokeColor=#666666;fontFamily=Times New Roman;" vertex="1" parent="g"><mxGeometry x="460" y="10" width="90" height="70" as="geometry"/></mxCell><mxCell id="n5" value="Final answer" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#FFF2CC;strokeColor=#D6B656;fontSize=12;" vertex="1" parent="g"><mxGeometry x="590" y="27" width="100" height="36" as="geometry"/></mxCell><mxCell id="n6" value="Action&lt;br&gt;(tool call)" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#F9DCEB;strokeColor=#B5739D;fontSize=12;" vertex="1" parent="g"><mxGeometry x="445" y="127" width="120" height="36" as="geometry"/></mxCell><mxCell id="n7" value="Tools /&lt;br&gt;environment" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#D5E8D4;strokeColor=#82B366;fontSize=13;arcSize=12;" vertex="1" parent="g"><mxGeometry x="280" y="127" width="140" height="36" as="geometry"/></mxCell><mxCell id="n8" value="Observation" style="rounded=1;arcSize=8;whiteSpace=wrap;html=1;fontColor=#333333;strokeWidth=1.5;fontFamily=Times New Roman;fillColor=#F5F5F5;strokeColor=#999999;fontSize=12;" vertex="1" parent="g"><mxGeometry x="140" y="127" width="120" height="36" as="geometry"/></mxCell><mxCell id="e1" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n1" target="n2" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n2" target="n3" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n3" target="n4" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e4" value="yes" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=1;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n4" target="n5" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e5" value="no" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n4" target="n6" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e6" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n6" target="n7" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e7" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n7" target="n8" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell><mxCell id="e8" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeColor=#333333;strokeWidth=1.5;fontSize=11;fontColor=#333333;labelBackgroundColor=#FFFFFF;fontFamily=Times New Roman;endArrow=block;endFill=1;endSize=2;exitX=0.5;exitY=0;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" source="n8" target="n2" parent="g"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell></root></mxGraphModel>
  </diagram>
</mxfile>
