{
  "id": "bbg-p0042-ai-agents-and-tool-use",
  "title": "AI Agent Operating Loop",
  "chapter": "ai-agents-and-tool-use",
  "batch": "32",
  "rank": 315,
  "sourcePage": 42,
  "sourcePointer": "p. 42",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "architecture",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render and extracted text inspected",
      "preserve AI-agent loop: environment sensing, data gathering, goal-directed decisions, tool actions, memory, and human guidance",
      "omit source icons and long prose"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: environment interaction",
      "concept: gather data",
      "concept: decide best action",
      "concept: tool use",
      "concept: memory",
      "concept: human in the loop"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "loop",
      "label": "Agent loop",
      "x": 68,
      "y": 126,
      "w": 824,
      "h": 330
    }
  ],
  "shapes": [
    {
      "id": "env",
      "kind": "rect",
      "label": "Environment",
      "detail": "signals",
      "x": 100,
      "y": 238,
      "w": 132,
      "h": 58,
      "tone": "blue"
    },
    {
      "id": "agent",
      "kind": "hex",
      "label": "Agent",
      "detail": "goal policy",
      "x": 390,
      "y": 220,
      "w": 142,
      "h": 88,
      "tone": "orange"
    },
    {
      "id": "llm",
      "kind": "rect",
      "label": "Reasoning",
      "detail": "LLM plan",
      "x": 392,
      "y": 348,
      "w": 132,
      "h": 58,
      "tone": "purple"
    },
    {
      "id": "memory",
      "kind": "cylinder",
      "label": "Memory",
      "detail": "preferences",
      "x": 612,
      "y": 158,
      "w": 122,
      "h": 72,
      "tone": "green"
    },
    {
      "id": "tools",
      "kind": "rect",
      "label": "Tools",
      "detail": "APIs code",
      "x": 640,
      "y": 320,
      "w": 122,
      "h": 58,
      "tone": "teal"
    },
    {
      "id": "human",
      "kind": "actor",
      "label": "Human",
      "detail": "guidance",
      "x": 220,
      "y": 338,
      "w": 82,
      "h": 86,
      "tone": "red"
    }
  ],
  "connectors": [
    {
      "from": "env",
      "to": "agent",
      "label": "observe",
      "flow": "main"
    },
    {
      "from": "agent",
      "to": "llm",
      "label": "decide",
      "flow": "control"
    },
    {
      "from": "agent",
      "to": "memory",
      "label": "read write",
      "flow": "data"
    },
    {
      "from": "agent",
      "to": "tools",
      "label": "act",
      "flow": "async"
    },
    {
      "from": "human",
      "to": "agent",
      "label": "guide",
      "flow": "control",
      "dashed": true
    },
    {
      "from": "tools",
      "to": "env",
      "label": "effect",
      "flow": "main"
    }
  ]
}
