def is_valid_step_id()

in functions/orchestration-helpers/intermediate/main.py [0:0]


def is_valid_step_id(step_id):
    """Checks if a step ID starts with "aef_" or "aef-".

    Args:
        step_id: The step ID string to check.

    Returns:
        True if the step ID is valid, False otherwise.
    """

    pattern = r"^aef[_-]"  # Use a regular expression for more flexibility
    return bool(re.match(pattern, step_id))