haive.agents.planning.plan_and_execute.v2.state¶
State schema for Plan and Execute Agent v2.
Classes¶
State for Plan and Execute Agent v2. |
Module Contents¶
- class haive.agents.planning.plan_and_execute.v2.state.PlanAndExecuteState(/, **data)¶
Bases:
haive.core.schema.prebuilt.multi_agent_state.MultiAgentStateState for Plan and Execute Agent v2.
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.
- Parameters:
data (Any)
- get_next_step()¶
Get the next incomplete step.
- Return type:
haive.agents.planning.plan_and_execute.v2.models.Step | None
- update_past_steps(step)¶
Add completed step to past_steps.
- Parameters:
step (haive.agents.planning.plan_and_execute.v2.models.Step)
- Return type:
None