createTunedModel method
Future<Operation<TunedModel, CreateTunedModelMetadata> >
createTunedModel(
- CreateTunedModelRequest request
override
Creates a tuned model.
Check intermediate tuning progress (if any) through the
google.longrunning.Operations service.
Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Returns an Operation representing the status of the long-running
operation.
When complete, Operation.done will be true. If successful,
Operation.responseAsMessage will contain the operation's result.
Implementation
@override
Future<Operation<TunedModel, CreateTunedModelMetadata>> createTunedModel(
CreateTunedModelRequest request,
) async {
if (isClosed) throw StateError('Service is closed');
if (_createTunedModel case final createTunedModel?) {
return createTunedModel(request);
}
throw UnsupportedError('createTunedModel');
}