haive.agents.planning.rewoo.models.steps ======================================== .. py:module:: haive.agents.planning.rewoo.models.steps .. autoapi-nested-parse:: Step Models for ReWOO Planning. Abstract step class and concrete implementations with computed fields and validators. Classes ------- .. autoapisummary:: haive.agents.planning.rewoo.models.steps.AbstractStep haive.agents.planning.rewoo.models.steps.BasicStep Module Contents --------------- .. py:class:: AbstractStep(/, **data) Bases: :py:obj:`pydantic.BaseModel`, :py:obj:`abc.ABC` Abstract base step that other steps inherit from. 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:: can_execute(completed_steps) :abstractmethod: Check if this step can execute given completed steps. .. py:method:: execute(context) :abstractmethod: Execute this step with given context. .. py:method:: validate_dependencies(v) :classmethod: Validate dependency IDs. .. py:method:: validate_id(v) :classmethod: Validate step ID format. .. py:property:: dependency_count :type: int Number of dependencies. .. py:property:: has_dependencies :type: bool Whether this step has dependencies. .. py:attribute:: model_config Configuration for the model, should be a dictionary conforming to [`ConfigDict`][pydantic.config.ConfigDict]. .. py:class:: BasicStep(/, **data) Bases: :py:obj:`AbstractStep` Basic concrete implementation for testing. 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:: can_execute(completed_steps) Basic implementation - all dependencies must be completed. .. py:method:: execute(context) Basic execution - just return the description.