Workflow Orchestrator¶
Classes¶
- class arshai.workflows.workflow_orchestrator.BaseWorkflowOrchestrator(debug_mode=False)[source]¶
Bases:
IWorkflowOrchestratorBase implementation of workflow orchestrator.
This implementation follows the pattern from the previous project where: - Nodes are callable classes that operate on workflow state - State is passed between nodes and updated in each step - The orchestrator manages the flow between nodes using edges
- set_entry_points(router_func, entry_mapping)[source]¶
Set the workflow entry points with routing logic.
- Return type:
- async execute(input_data, callbacks=None, is_streaming=False)[source]¶
Execute the workflow with given input data.
This method: 1. Routes to the appropriate entry node based on input data 2. Executes each node in sequence based on edge connections 3. Passes the workflow state between nodes 4. Returns the final state and results