Fig 1
The agent loop
Click to step
messages = [user: weather in Pune?]
LOOP 01
messages = [task]
LLM: callModel(messages)
no toolCall: return reply.content
tools[name](args)
for (step < maxSteps)
messages.length