How an AI Agent Works

Key idea: Agents = an LLM in a loop with tools, memory, and guardrails.

  1. Send the first prompt with every tool on, then turn the calculator off and send it again.
  2. Set Max loop steps to 1 and ask a two-tool question. The loop stops before the agent can answer.
  3. Tell it your name, turn Memory off, then ask what your name is.
  4. Turn on Guardrails and ask something harmful to see the input check block it.
Try a prompt
Enter to send · Shift+Enter for a new line

Change how it works, then send again

tool callresultUseryour promptInput guardrailoffMemorychat historyContext builderassemble the promptSystem promptpersona + rulesLLMdecides next actionministral-8bTool routerruns tool callsCalculatorreal mathWeather APIsimulatedWeb searchsimulatedOutput guardrailoffResponseback to the user
Send a message to watch it run

Behind the scenes

Send a message and every step the system takes will show up here.