Skip to main content

Parameters

ParameterTypeDefaultDescription
taskTaskRequiredThe task being executed
reliability_layerAnyRequiredThe configured reliability layer
model_providerModelRequiredThe instantiated model object

Functions

process_task

Process the task through the reliability layer. Parameters:
  • task (Task): The task to process
Returns:
  • Any: The processed task result

manage_reliability

Asynchronous context manager for managing reliability layer operations. Returns:
  • AsyncContextManager: Context manager that handles reliability processing
Usage:
async with reliability_manager.manage_reliability() as manager:
    processed_task = await manager.process_task(task)
    # Reliability processing handled automatically
Features:
  • Reliability Processing: Integrates with ReliabilityProcessor for task processing
  • Model Integration: Uses the model provider for reliability operations
  • Task Processing: Processes tasks through the configured reliability layer
  • Async Support: Handles reliability operations asynchronously
  • Error Handling: Manages reliability layer errors gracefully
I