π Agent Loop Lab
Watch a chatbot become an
agent
β the tool-use loop, one step at a time.
π demo key: sk-demo-β¦7f3 (mocked)
wire dialect:
Anthropic
OpenAI
Gemini
β Back
Next step βΆ
βΊ Reset
round-trips to model:
0
system prompt re-sent:
0
Γ
β tokens billed:
0
messages[] β the conversation state
the wire
the loop β runHelpAgent()
highlighted = running now
user turn
assistant turn (model)
tool_use block
tool_result (your server)