plexus.cli.shared.stage_configurations module

Stage configurations for different types of operations.

This module provides predefined stage configurations for different operation types like evaluations, predictions, etc. Each configuration defines the stages, their order, and their properties.

plexus.cli.shared.stage_configurations.get_evaluation_stage_configs(total_items: int = 0) Dict[str, StageConfig]

Get stage configuration for evaluation operations.

Args:

total_items: Total number of items to process (for Processing stage)

Returns:

Dictionary mapping stage names to StageConfig objects

plexus.cli.shared.stage_configurations.get_evaluation_stages(total_items: int = 0) Dict[str, StageConfig]

Legacy alias for get_evaluation_stage_configs.

plexus.cli.shared.stage_configurations.get_experiment_stage_configs(total_items: int = 0) Dict[str, StageConfig]

Legacy alias for get_procedure_stage_configs.

plexus.cli.shared.stage_configurations.get_feedback_evaluation_stage_configs(total_items: int = 0) Dict[str, StageConfig]

Get stage configuration for feedback evaluation operations.

Args:

total_items: Total number of feedback items to process (for Processing stage)

Returns:

Dictionary mapping stage names to StageConfig objects

plexus.cli.shared.stage_configurations.get_prediction_stage_configs(total_items: int = 1) Dict[str, StageConfig]

Get stage configuration for prediction operations.

Args:

total_items: Total number of items to process (for Predicting stage)

Returns:

Dictionary mapping stage names to StageConfig objects

plexus.cli.shared.stage_configurations.get_prediction_stages(total_items: int = 1) Dict[str, StageConfig]

Legacy alias for get_prediction_stage_configs.

plexus.cli.shared.stage_configurations.get_procedure_stage_configs(total_items: int = 0) Dict[str, StageConfig]

Get stage configuration for procedure operations.

Delegates to the state machine configuration to ensure consistency. Stage names match the state machine states: Start -> Evaluation -> Hypothesis -> Test -> Insights -> Completed. The ‘Completed’ state is handled by the Task status, not as a separate stage.

Args:

total_items: Total number of items to process (currently unused as procedures don’t have item counts)

Returns:

Dictionary mapping stage names to StageConfig objects

plexus.cli.shared.stage_configurations.get_stage_configs_for_operation_type(operation_type: str, total_items: int = 0) Dict[str, StageConfig]

Get stage configuration for a specific operation type.

Args:

operation_type: Type of operation (‘evaluation’, ‘prediction’, etc.) total_items: Total number of items to process

Returns:

Dictionary mapping stage names to StageConfig objects

Raises:

ValueError: If operation_type is not recognized