agents.planning.p_and_e.multi_agentΒΆ

Plan and Execute Multi-Agent System using Configurable Base.

from typing import Any This module demonstrates how to use the configurable multi-agent base for building Plan and Execute workflows with branches.

ClassesΒΆ

PlanAndExecuteAgent

Plan and Execute multi-agent using the configurable base.

FunctionsΒΆ

create_custom_branching_system(agents, branches)

Create custom branching multi-agent system.

create_custom_plan_execute_system(planner_agent, ...)

Create Plan and Execute system with custom branches.

create_plan_execute_system(planner_agent, ...)

Create Plan and Execute system with default workflow.

create_simple_sequential_system(agents)

Create simple sequential multi-agent system.

Module ContentsΒΆ

class agents.planning.p_and_e.multi_agent.PlanAndExecuteAgent(agents, branches=None, state_schema=None, **kwargs)ΒΆ

Bases: haive.agents.multi.archive.configurable_base.ConfigurableMultiAgent

Plan and Execute multi-agent using the configurable base.

Initialize Plan and Execute multi-agent.

Parameters:
  • agents (list[Any]) – List of [planner, executor, replanner] agents

  • branches (list[haive.agents.multi.archive.configurable_base.AgentBranch] | None) – Optional custom branches (defaults to Plan & Execute workflow)

  • state_schema – Optional state schema override

  • **kwargs – Additional arguments

agents.planning.p_and_e.multi_agent.create_custom_branching_system(agents, branches)ΒΆ

Create custom branching multi-agent system.

Parameters:

agents (Any)

agents.planning.p_and_e.multi_agent.create_custom_plan_execute_system(planner_agent, executor_agent, replanner_agent, custom_branches)ΒΆ

Create Plan and Execute system with custom branches.

Parameters:

custom_branches (list[haive.agents.multi.archive.configurable_base.AgentBranch])

agents.planning.p_and_e.multi_agent.create_plan_execute_system(planner_agent, executor_agent, replanner_agent)ΒΆ

Create Plan and Execute system with default workflow.

Parameters:
  • planner_agent (Any)

  • executor_agent (Any)

  • replanner_agent (Any)

agents.planning.p_and_e.multi_agent.create_simple_sequential_system(agents)ΒΆ

Create simple sequential multi-agent system.

Parameters:

agents (Any)