BasicController#

classDiagram ControllerBase <|-- BasicController Monitorable <|-- ControllerBase
class council.controllers.BasicController(chains: List[Chain])[source]#

Bases: ControllerBase

a basic controller that requests all chains to be executed and returns all results

__init__(chains: List[Chain])#
Parameters:

chains (List[Chain]) – The list of chains available for execution.

property chains: Sequence[Chain]#

the chains of the controller

execute(context: AgentContext) List[ExecutionUnit]#

Generates an execution plan for the agent based on the provided context, chains, and budget.

Parameters:

context (AgentContext) – The context for generating the execution plan.

Returns:

A list of execution units representing the execution plan.

Return type:

List[ExecutionUnit]

Raises:

None