agents.reasoning_and_critique.reflection.agentΒΆ
Reflection Agent Implementation.
ClassesΒΆ
An agent with self-reflection capabilities that can improve its responses. |
Module ContentsΒΆ
- class agents.reasoning_and_critique.reflection.agent.ReflectionAgent(config)ΒΆ
Bases:
haive.agents.simple.agent.SimpleAgent
An 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)
- setup_workflow()ΒΆ
Set up a workflow graph with reflection capabilities.
- Return type:
None