def get_trader_fcas_availability_agc_status_condition(params) -> bool:
    """Get FCAS availability AGC status condition. AGC must be enabled for regulation FCAS."""

    # Check AGC status if presented with a regulating FCAS offer
    if params['trade_type'] in ['L5RE', 'R5RE']:
        # AGC is active='1', AGC is inactive='0'
        return True if params['agc_status'] == '1' else False

    # Return True if a presented with a contingency FCAS offer (AGC doesn't need to be enabled)
    else:
        return True