Tweets From Avi Chawla

π **Source:** [Tweets From Avi Chawla](https://twitter.com/_avichawla)
## Highlights
- Prompt engineering & loop engineering, clearly explained!
At its core, an agent is a while loop:
- The model runs
- It requests tool calls
- The tool results return to the context
- The model runs again until it stops requesting tools
ReAct described this form of loop back in https://t.co/k3CvTU1sIw https://t.co/OP672n9FDR ([View Tweet](https://x.com/_avichawla/status/2070443217850671526))