haive.agents.reasoning_and_critique.reflexion.state¶

Reflexion agent state.

Classes¶

ReflexionState

State for the Reflexion graph.

Module Contents¶

class haive.agents.reasoning_and_critique.reflexion.state.ReflexionState¶

Bases: TypedDict

State for the Reflexion graph.

Fields:

input: The original user query. draft: The current best answer text. reflections: List of reflection/critique strings from each iteration. revision_count: How many revise iterations have been completed.

Initialize self. See help(type(self)) for accurate signature.