sync_executor¶
sync_executor ¶
Synchronous execution strategy.
Default executor that maintains current behavior using ThreadPoolExecutor for concurrent LLM calls.
SyncExecutor ¶
Bases: ExecutionStrategy
Synchronous execution strategy.
Uses ThreadPoolExecutor for concurrent LLM calls while maintaining sequential stage execution. This is the default strategy that preserves current behavior.
Initialize synchronous executor.
Source code in ondine/orchestration/sync_executor.py
execute ¶
Execute stages synchronously.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
stages
|
list[PipelineStage]
|
Pipeline stages |
required |
context
|
ExecutionContext
|
Execution context |
required |
Returns:
| Type | Description |
|---|---|
ExecutionResult
|
ExecutionResult with data and metrics |