haive.agents.planning.plan_and_execute.v2.models ================================================ .. py:module:: haive.agents.planning.plan_and_execute.v2.models .. autoapi-nested-parse:: Models for Plan and Execute Agent v2. Classes ------- .. autoapisummary:: haive.agents.planning.plan_and_execute.v2.models.Act haive.agents.planning.plan_and_execute.v2.models.ExecutionResult haive.agents.planning.plan_and_execute.v2.models.Plan haive.agents.planning.plan_and_execute.v2.models.Response haive.agents.planning.plan_and_execute.v2.models.Step Module Contents --------------- .. py:class:: Act(/, **data) Bases: :py:obj:`pydantic.BaseModel` Action to take - either respond or create new plan. 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:: ExecutionResult(/, **data) Bases: :py:obj:`pydantic.BaseModel` Result of executing a step. 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:: Plan(/, **data) Bases: :py:obj:`pydantic.BaseModel` A plan containing steps to execute. 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:: get_next_step() Get the next incomplete step. .. py:method:: update_status() Update plan status based on step completion. .. py:class:: Response(/, **data) Bases: :py:obj:`pydantic.BaseModel` Final response to user. 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:: Step(/, **data) Bases: :py:obj:`pydantic.BaseModel` A step in the plan. 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_result(result) Add result and mark step as complete. .. py:method:: is_complete() Check if step is complete.