<mxfile host="app.diagrams.net" version="22.1.0">
  <diagram name="LangChain-Bedrock" id="langchain-bedrock">
    <mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1000" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />
        <mxCell id="title" parent="1" style="text;html=1;align=left;verticalAlign=top;fontSize=24;fontStyle=1;fontFamily=Helvetica;fontColor=#232F3E;" value="LangChain on Amazon Bedrock with AgentCore production layers" vertex="1">
          <mxGeometry x="40" y="20" width="1400" height="32" as="geometry" />
        </mxCell>
        <mxCell id="subtitle" parent="1" style="text;html=1;align=left;verticalAlign=top;fontSize=13;fontFamily=Helvetica;fontColor=#545B64;" value="create_agent = model + tools + prompt + middleware; Bedrock Converse for FMs; AgentCore Runtime / Memory / Gateway / Identity around the app" vertex="1">
          <mxGeometry x="40" y="52" width="1400" height="24" as="geometry" />
        </mxCell>
        <mxCell id="sep" parent="1" style="line;strokeWidth=2;html=1;strokeColor=#FF9900;" value="" vertex="1">
          <mxGeometry x="40" y="84" width="1480" height="10" as="geometry" />
        </mxCell>
        <mxCell id="app" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F2F3F3;strokeColor=#545B64;fontFamily=Helvetica;fontSize=12;fontStyle=1;" value="Business application&#xa;chat, ticket, BI UI" vertex="1">
          <mxGeometry x="40" y="210" width="150" height="70" as="geometry" />
        </mxCell>
        <mxCell id="lc" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E6F2F8;strokeColor=#3B48CC;fontColor=#3B48CC;fontFamily=Helvetica;fontSize=12;fontStyle=1;" value="LangChain application&#xa;models, prompts, retrieval&#xa;create_agent loop" vertex="1">
          <mxGeometry x="230" y="190" width="190" height="110" as="geometry" />
        </mxCell>
        <mxCell id="tools" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E6F2F8;strokeColor=#3B48CC;fontColor=#3B48CC;fontFamily=Helvetica;fontSize=11;fontStyle=1;" value="Tool / retrieval logic&#xa;narrow schemas, no raw SQL" vertex="1">
          <mxGeometry x="230" y="330" width="190" height="60" as="geometry" />
        </mxCell>
        <mxCell id="runtime" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E8FD;strokeColor=#8C4FFF;fontColor=#8C4FFF;fontFamily=Helvetica;fontSize=12;fontStyle=1;" value="AgentCore Runtime (optional host)&#xa;ARM64 session isolation" vertex="1">
          <mxGeometry x="460" y="200" width="200" height="80" as="geometry" />
        </mxCell>
        <mxCell id="identity" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#DD344C;fontColor=#DD344C;fontFamily=Helvetica;fontSize=11;fontStyle=1;" value="AgentCore Identity" vertex="1">
          <mxGeometry x="460" y="300" width="200" height="44" as="geometry" />
        </mxCell>
        <mxCell id="memory" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF2E8;strokeColor=#ED7100;fontColor=#ED7100;fontFamily=Helvetica;fontSize=11;fontStyle=1;" value="AgentCore Memory&#xa;session + long-term" vertex="1">
          <mxGeometry x="700" y="150" width="180" height="56" as="geometry" />
        </mxCell>
        <mxCell id="gateway" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E8FD;strokeColor=#8C4FFF;fontColor=#8C4FFF;fontFamily=Helvetica;fontSize=12;fontStyle=1;" value="AgentCore Gateway + Policy&#xa;MCP / OpenAPI / Lambda" vertex="1">
          <mxGeometry x="700" y="230" width="180" height="70" as="geometry" />
        </mxCell>
        <mxCell id="kb" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E6F2F8;strokeColor=#3B48CC;fontColor=#3B48CC;fontFamily=Helvetica;fontSize=11;fontStyle=1;" value="Bedrock Knowledge Bases&#xa;or scoped search API" vertex="1">
          <mxGeometry x="700" y="320" width="180" height="56" as="geometry" />
        </mxCell>
        <mxCell id="bedrock" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E6F2F8;strokeColor=#3B48CC;fontColor=#3B48CC;fontFamily=Helvetica;fontSize=12;fontStyle=1;" value="Amazon Bedrock&#xa;Converse / Guardrails" vertex="1">
          <mxGeometry x="930" y="170" width="180" height="70" as="geometry" />
        </mxCell>
        <mxCell id="enterprise" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E9F5EC;strokeColor=#1B861F;fontColor=#1B861F;fontFamily=Helvetica;fontSize=11;fontStyle=1;" value="Enterprise systems&#xa;CRM, docs, metric APIs" vertex="1">
          <mxGeometry x="930" y="270" width="180" height="70" as="geometry" />
        </mxCell>
        <mxCell id="obs" parent="1" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F2F3F3;strokeColor=#545B64;fontFamily=Helvetica;fontSize=11;" value="Observability → CloudWatch (OTEL) + eval suite before production traffic" vertex="1">
          <mxGeometry x="460" y="430" width="420" height="40" as="geometry" />
        </mxCell>
        <mxCell id="e1" edge="1" parent="1" source="app" target="lc" style="endArrow=classic;strokeColor=#545B64;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e2" edge="1" parent="1" source="lc" target="tools" style="endArrow=classic;strokeColor=#3B48CC;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e3" edge="1" parent="1" source="lc" target="runtime" style="endArrow=classic;strokeColor=#8C4FFF;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e4" edge="1" parent="1" source="runtime" target="identity" style="endArrow=classic;strokeColor=#DD344C;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e5" edge="1" parent="1" source="runtime" target="memory" style="endArrow=classic;strokeColor=#ED7100;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e6" edge="1" parent="1" source="tools" target="gateway" style="endArrow=classic;strokeColor=#8C4FFF;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e7" edge="1" parent="1" source="lc" target="kb" style="endArrow=classic;strokeColor=#3B48CC;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e8" edge="1" parent="1" source="lc" target="bedrock" style="endArrow=classic;strokeColor=#3B48CC;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
        <mxCell id="e9" edge="1" parent="1" source="gateway" target="enterprise" style="endArrow=classic;strokeColor=#1B861F;">
          <mxGeometry relative="1" as="geometry" />
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
