BasicController#
classDiagram
ControllerBase <|-- BasicController
Monitorable <|-- ControllerBase
- class council.controllers.BasicController(chains: Sequence[ChainBase], parallelism: bool = False)[source]#
Bases:
ControllerBasea basic controller that requests all chains to be executed and returns all results
- 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 –
- render_as_dict() Dict[str, Any]#
returns the graph of operation as a dictionary
- render_as_json() str#
returns the graph of operation as a JSON string