v2026.5.3
All Bundles
Bundle Google Gemini support for tuned models (-lib gemini)

Tuner

Fine-tuning model operations

Inherits: OAuthEndPoint

Operations

Create # function

Creates a tuned model

function : Create(display_name:String, base_model:String, tuning_task:TuningTask) ~ API.Google.Gemini.Tuning.TunedModel

Parameters

NameTypeDescription
display_nameStringthe name to display for this model in user interfaces
base_modelStringthe name of the base model to tune from
tuning_taskTuningTaskthe tuning task that creates the tuned model

Return

TypeDescription
TunedModelsnapshot of tuned model and metadata

Create # function

Creates a tuned model

function : Create(display_name:String, description:String, tuning_task:TuningTask, tune_model_source:Pair<String,String>, base_model:String, temperature:Float, top_p:Float, top_k:Int) ~ API.Google.Gemini.Tuning.TunedModel

Parameters

NameTypeDescription
display_nameStringthe name to display for this model in user interfaces
descriptionStringa short description of this model
tuning_taskTuningTaskthe tuning task that creates the tuned model
tune_model_sourcePair<String,String>used as the starting point for training the new model
base_modelStringthe name of the base model to tune from
temperatureFloatcontrols the randomness of the output
top_pFloatfor nucleus sampling considers the smallest set of tokens whose probability sum is at least top-p.
top_kIntfor top-k sampling considers the set of top-k most probable tokens. this value specifies default to be used by the backend while making the call to the model

Return

TypeDescription
TunedModelsnapshot of tuned model and metadata

DeleteAllModels # function

Deletes all trained models

function : DeleteAllModels() ~ Bool

Return

TypeDescription
Booltrue if successful, false otherwise

Get # function

Creates a tuned model

function : Get(model_id:String) ~ TunedModel

Parameters

NameTypeDescription
model_idStringresource model identifier

Return

TypeDescription
TunedModeltuned model

List # function

Lists tuned models owned by the user

function : List() ~ Vector<TunedModel>

Return

TypeDescription
Vector<TunedModel>list of tuned models

ToJson #

JSON representation of the instance

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON representation of the instance

ToString #

JSON string representation of the instance

method : public : ToString() ~ String

Return

TypeDescription
StringJSON string representation of the instance

TransferOwnership # function

Creates a tuned model

function : TransferOwnership(new_email:String, model_id:String) ~ Bool

Parameters

NameTypeDescription
new_emailStringemail address of new owner
model_idStringresource model identifier

Return

TypeDescription
Booltrue if successful, false otherwise