haive.agents.reasoning_and_critique.reflection.agent¶
Reflection Agent Implementation.
Classes¶
An agent with self-reflection capabilities that can improve its responses. |
Module Contents¶
- class haive.agents.reasoning_and_critique.reflection.agent.ReflectionAgent(config=None, **kwargs)¶
Bases:
haive.agents.simple.agent.SimpleAgentAn agent with self-reflection capabilities that can improve its responses.
This agent extends SimpleAgent by adding reflection and improvement steps to iteratively refine responses based on self-critique.
Initialize the reflection agent with the provided configuration.
- Parameters:
config (haive.agents.reasoning_and_critique.reflection.config.ReflectionAgentConfig | None)
- setup_workflow()¶
Set up a workflow graph with reflection capabilities.
- Return type:
None