haive.agents.reasoning_and_critique.reflexion.models ==================================================== .. py:module:: haive.agents.reasoning_and_critique.reflexion.models .. autoapi-nested-parse:: Pydantic models for Reflexion structured output. Classes ------- .. autoapisummary:: haive.agents.reasoning_and_critique.reflexion.models.AnswerQuestion haive.agents.reasoning_and_critique.reflexion.models.Reflection haive.agents.reasoning_and_critique.reflexion.models.ReviseAnswer Module Contents --------------- .. py:class:: AnswerQuestion(/, **data) Bases: :py:obj:`pydantic.BaseModel` Initial answer with self-reflection and follow-up queries. 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:class:: Reflection(/, **data) Bases: :py:obj:`pydantic.BaseModel` Structured critique of a draft answer. 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:class:: ReviseAnswer(/, **data) Bases: :py:obj:`AnswerQuestion` Revised answer incorporating reflection and references. 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.