haive.agents.reasoning_and_critique.reflection.state ==================================================== .. py:module:: haive.agents.reasoning_and_critique.reflection.state .. autoapi-nested-parse:: State schema for the Reflection Agent. Classes ------- .. autoapisummary:: haive.agents.reasoning_and_critique.reflection.state.ReflectionAgentState Module Contents --------------- .. py:class:: ReflectionAgentState(/, **data) Bases: :py:obj:`haive.agents.simple.state.SimpleAgentState` State schema for the Reflection agent. Create a new model by parsing and validating input data from keyword arguments. Raises [`ValidationError`][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. `self` is explicitly positional-only to allow `self` as a field name. .. py:method:: add_reflection(reflection) Add a reflection result to the history. .. py:property:: last_ai_message :type: str | None Extract the last AI message content. .. py:property:: last_human_message :type: str | None Extract the last human message content.