[api] Change determine_engine to use symbols and strings when checking values