getTunedModel method

  1. @override
Future<TunedModel> getTunedModel(
  1. GetTunedModelRequest request
)
override

Gets information about a specific TunedModel.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<TunedModel> getTunedModel(GetTunedModelRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getTunedModel case final getTunedModel?) {
    return getTunedModel(request);
  }
  throw UnsupportedError('getTunedModel');
}