0
Act 3

Application

8 / 9

Agents & Tool Use

Act 3 Β· ~5 min

Theory

An LLM becomes an agent when it gains a tool inventory and runs inside a loop: reason β†’ select tool β†’ invoke with structured args β†’ read result β†’ loop or finish.

Tool taxonomy:

CategoryExamplesRisk level
Knowledgeweb search, RAG, SQL readsLow β€” read-only
Computationcalculator, code interpreterLow β€” no side effects
Write actionsemail, file writer, DB updatesHigh β€” irreversible

Calling protocol: each tool has a name, description, and JSON schema. The model emits structured JSON; the runtime parses + executes.

Thinktask + context
Selectfrom inventory
Executecall + observe
Gate / Doneconfirm or answer
Agent loop with a guardrail at the write boundary.

A step cap stops loops; only a confirmation gate stops irreversible harm. Next: ReAct formalizes the loop with explicit reasoning traces.