is_generic_role_name
- role_name (str): The role name to check (will be converted to lowercase for case-insensitive comparison).
WorkflowMetadata
WorkflowConfig
WorkerConf
TaskResult
QualityEvaluation
TaskAnalysisResult instead. This class is kept for
backward compatibility.
TaskAssignment
_split_and_strip
validate_dependencies
TaskAssignResult
RecoveryStrategy
str
repr
FailureContext
TaskAnalysisResult
is_quality_evaluation
quality_sufficient
>= 70 and no recovery
strategy recommended), False otherwise. Always False for
failure analysis results.
PipelineTaskBuilder
init
add
- content (str): The content/description of the task.
- task_id (str, optional): Unique identifier for the task. If None, a unique ID will be generated. (default: :obj:
None) - dependencies (List[str], optional): List of task IDs that this task depends on. If None and auto_depend=True, will depend on the last added task. (default: :obj:
None) - additional_info (dict, optional): Additional information for the task. (default: :obj:
None) - auto_depend (bool, optional): If True and dependencies is None, automatically depend on the last added task. (default: :obj:
True)
add_parallel_tasks
- task_contents (List[str]): List of task content strings.
- dependencies (List[str], optional): Common dependencies for all parallel tasks. If None and auto_depend=True, will depend on the last added task. (default: :obj:
None) - task_id_prefix (str, optional): Prefix for generated task IDs. (default: :obj:
"parallel") - auto_depend (bool, optional): If True and dependencies is None, automatically depend on the last added task. (default: :obj:
True)
add_sync_task
- content (str): Content of the synchronization task.
- wait_for (List[str], optional): List of task IDs to wait for. If None, will automatically wait for the last parallel tasks. (default: :obj:
None) - task_id (str, optional): ID for the sync task. If None, a unique ID will be generated. (default: :obj:
None)
build
clear
fork
- task_contents (List[str]): List of task content strings for parallel execution.
join
- content (str): Content of the join/sync task.
- task_id (str, optional): ID for the sync task.
_validate_dependencies
get_task_info
check_if_running
- running (bool): Expected running state (True or False).
- max_retries (int, optional): Maximum number of retry attempts if the operation fails. Set to 0 to disable retries. (default: :obj:
3) - retry_delay (float, optional): Delay in seconds between retry attempts. (default: :obj:
1.0) - handle_exceptions (bool, optional): If True, catch and log exceptions instead of propagating them. (default: :obj:
False)
- RuntimeError: If the workforce is not in the expected status and
- Exception: Any exception raised by the decorated function if