cancel

suspend fun cancel(name: String, config: CancelTuningJobConfig? = null): CancelTuningJobResponse

Cancels a tuning job resource.

Return

A CancelTuningJobResponse object.

Parameters

name

The resource name of the tuning job. For Gemini Enterprise Agent Platform, this is the full resource name. For Gemini API, this is tunedModels/{id}.

config

A CancelTuningJobConfig for configuring the cancel request.