agents.planning.plan_and_execute.v2.stateΒΆ

State schema for Plan and Execute Agent v2.

ClassesΒΆ

PlanAndExecuteState

State for Plan and Execute Agent v2.

Module ContentsΒΆ

class agents.planning.plan_and_execute.v2.state.PlanAndExecuteState(/, **data)ΒΆ

Bases: haive.core.schema.prebuilt.multi_agent_state.MultiAgentState

State 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

is_plan_complete()ΒΆ

Check if the plan is complete.

Return type:

bool

update_past_steps(step)ΒΆ

Add completed step to past_steps.

Parameters:

step (haive.agents.planning.plan_and_execute.v2.models.Step)

Return type:

None