AI Agent Architectures is the complex structures that shape how machines perceive, reason, and act in their environments in the pursuit of autonomous intelligence.
This simple example composes two LLM calls: a generator and a reflector.
The generator tries to respond directly to the user's requests.
The reflector is prompted to role play as a teacher and offer constructive criticism for the initial response.
The loop proceeds a fixed number of times, and the final generated output is returned.
Reflexion
is an architecture designed to learn through verbal feedback and self-reflection.
Within Reflexion, the actor agent provides explicit critiques for each response, grounding its criticism in external data.
It is required to generate citations and clearly identify both the superfluous elements and missing aspects of the generated content.
This process makes the reflections more constructive, enabling the agent to better adjust its responses based on the feedback provided.