How an AI Agent Works
A simulated interactive demo
Register to try the lab
Everything below is real — it's just switched off until you register, so you can see exactly what you'd be trying first. It only takes an email and a name.
Register
The demo below runs this exact loop: read_slot and
write_slot are the tool calls, and each card is labeled "Loop 1,"
"Loop 2," or "Loop 3" to show which trip around the loop it belongs to.
One step = one round trip: the model checks the state, picks one tool call, sees the result, decides what's next. Press Next step to watch it happen.
The model remembers nothing between calls, so the whole chat resends every step — that's the color blocks on the right; hover one for its JSON.
Interactive demo — try it below
Color blocks for each step fill in here as you go.