@google/genai 1.38.0 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -567,6 +567,10 @@ declare class BadRequestError extends APIError<400, Headers> {
567
567
  }
568
568
 
569
569
  declare interface BaseCreateAgentInteractionParams {
570
+ /**
571
+ * Path param: Which version of the API to use.
572
+ */
573
+ api_version?: string;
570
574
  /**
571
575
  * Body param: The name of the `Agent` used for generating the interaction.
572
576
  */
@@ -575,10 +579,6 @@ declare interface BaseCreateAgentInteractionParams {
575
579
  * Body param: The inputs for the interaction.
576
580
  */
577
581
  input: string | Array<Content_2> | Array<Turn> | TextContent | ImageContent | AudioContent | DocumentContent | VideoContent | ThoughtContent | FunctionCallContent | FunctionResultContent | CodeExecutionCallContent | CodeExecutionResultContent | URLContextCallContent | URLContextResultContent | GoogleSearchCallContent | GoogleSearchResultContent | MCPServerToolCallContent | MCPServerToolResultContent | FileSearchCallContent | FileSearchResultContent;
578
- /**
579
- * Path param: Which version of the API to use.
580
- */
581
- api_version?: string;
582
582
  /**
583
583
  * Body param: Configuration for the agent.
584
584
  */
@@ -623,6 +623,10 @@ declare interface BaseCreateAgentInteractionParams {
623
623
  }
624
624
 
625
625
  declare interface BaseCreateModelInteractionParams {
626
+ /**
627
+ * Path param: Which version of the API to use.
628
+ */
629
+ api_version?: string;
626
630
  /**
627
631
  * Body param: The inputs for the interaction.
628
632
  */
@@ -631,10 +635,6 @@ declare interface BaseCreateModelInteractionParams {
631
635
  * Body param: The name of the `Model` used for generating the interaction.
632
636
  */
633
637
  model: Model_2;
634
- /**
635
- * Path param: Which version of the API to use.
636
- */
637
- api_version?: string;
638
638
  /**
639
639
  * Body param: Input only. Whether to run the model interaction in the background.
640
640
  */
@@ -775,6 +775,7 @@ declare class BaseInteractions extends APIResource {
775
775
  * @example
776
776
  * ```ts
777
777
  * const interaction = await client.interactions.create({
778
+ * api_version: 'api_version',
778
779
  * input: 'string',
779
780
  * model: 'gemini-2.5-pro',
780
781
  * });
@@ -790,7 +791,9 @@ declare class BaseInteractions extends APIResource {
790
791
  *
791
792
  * @example
792
793
  * ```ts
793
- * const interaction = await client.interactions.delete('id');
794
+ * const interaction = await client.interactions.delete('id', {
795
+ * api_version: 'api_version',
796
+ * });
794
797
  * ```
795
798
  */
796
799
  delete(id: string, params?: InteractionDeleteParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
@@ -799,7 +802,9 @@ declare class BaseInteractions extends APIResource {
799
802
  *
800
803
  * @example
801
804
  * ```ts
802
- * const interaction = await client.interactions.cancel('id');
805
+ * const interaction = await client.interactions.cancel('id', {
806
+ * api_version: 'api_version',
807
+ * });
803
808
  * ```
804
809
  */
805
810
  cancel(id: string, params?: InteractionCancelParams | null | undefined, options?: RequestOptions): APIPromise<Interaction>;
@@ -808,7 +813,9 @@ declare class BaseInteractions extends APIResource {
808
813
  *
809
814
  * @example
810
815
  * ```ts
811
- * const interaction = await client.interactions.get('id');
816
+ * const interaction = await client.interactions.get('id', {
817
+ * api_version: 'api_version',
818
+ * });
812
819
  * ```
813
820
  */
814
821
  get(id: string, params?: InteractionGetParamsNonStreaming, options?: RequestOptions): APIPromise<Interaction>;
@@ -1824,7 +1831,7 @@ declare namespace ContentDelta {
1824
1831
  }
1825
1832
  namespace FunctionResultDelta {
1826
1833
  interface Items {
1827
- items?: Array<string | InteractionsAPI.ImageContent | unknown>;
1834
+ items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent | unknown>;
1828
1835
  }
1829
1836
  }
1830
1837
  interface CodeExecutionCallDelta {
@@ -2439,7 +2446,7 @@ export declare interface CreateTuningJobConfig {
2439
2446
  be charged usage for any applicable operations.
2440
2447
  */
2441
2448
  abortSignal?: AbortSignal;
2442
- /** The method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING). If not set, the default method (SFT) will be used. */
2449
+ /** The method to use for tuning (SUPERVISED_FINE_TUNING or PREFERENCE_TUNING or DISTILLATION). If not set, the default method (SFT) will be used. */
2443
2450
  method?: TuningMethod;
2444
2451
  /** Validation dataset for tuning. The dataset must be formatted as a JSONL file. */
2445
2452
  validationDataset?: TuningValidationDataset;
@@ -2449,7 +2456,7 @@ export declare interface CreateTuningJobConfig {
2449
2456
  description?: string;
2450
2457
  /** Number of complete passes the model makes over the entire training dataset during training. */
2451
2458
  epochCount?: number;
2452
- /** Multiplier for adjusting the default learning rate. */
2459
+ /** Multiplier for adjusting the default learning rate. 1P models only. Mutually exclusive with learning_rate. */
2453
2460
  learningRateMultiplier?: number;
2454
2461
  /** If set to true, disable intermediate checkpoints and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints. */
2455
2462
  exportLastCheckpointOnly?: boolean;
@@ -2457,14 +2464,26 @@ export declare interface CreateTuningJobConfig {
2457
2464
  preTunedModelCheckpointId?: string;
2458
2465
  /** Adapter size for tuning. */
2459
2466
  adapterSize?: AdapterSize;
2460
- /** The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. */
2467
+ /** Tuning mode for SFT tuning. */
2468
+ tuningMode?: TuningMode;
2469
+ /** Custom base model for tuning. This is only supported for OSS models in Vertex. */
2470
+ customBaseModel?: string;
2471
+ /** The batch size hyperparameter for tuning. This is only supported for OSS models in Vertex. */
2461
2472
  batchSize?: number;
2462
- /** The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. */
2473
+ /** The learning rate for tuning. OSS models only. Mutually exclusive with learning_rate_multiplier. */
2463
2474
  learningRate?: number;
2464
2475
  /** Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */
2465
2476
  labels?: Record<string, string>;
2466
2477
  /** Weight for KL Divergence regularization, Preference Optimization tuning only. */
2467
2478
  beta?: number;
2479
+ /** The base teacher model that is being distilled. Distillation only. */
2480
+ baseTeacherModel?: string;
2481
+ /** The resource name of the Tuned teacher model. Distillation only. */
2482
+ tunedTeacherModelSource?: string;
2483
+ /** Multiplier for adjusting the weight of the SFT loss. Distillation only. */
2484
+ sftLossWeightMultiplier?: number;
2485
+ /** The Google Cloud Storage location where the tuning job outputs are written. */
2486
+ outputUri?: string;
2468
2487
  }
2469
2488
 
2470
2489
  /** Fine-tuning job creation parameters - optional fields. */
@@ -2739,6 +2758,36 @@ export declare interface DistillationDataStats {
2739
2758
  trainingDatasetStats?: DatasetStats;
2740
2759
  }
2741
2760
 
2761
+ /** Hyperparameters for Distillation. This data type is not supported in Gemini API. */
2762
+ export declare interface DistillationHyperParameters {
2763
+ /** Optional. Adapter size for distillation. */
2764
+ adapterSize?: AdapterSize;
2765
+ /** Optional. Number of complete passes the model makes over the entire training dataset during training. */
2766
+ epochCount?: string;
2767
+ /** Optional. Multiplier for adjusting the default learning rate. */
2768
+ learningRateMultiplier?: number;
2769
+ }
2770
+
2771
+ /** Distillation tuning spec for tuning. */
2772
+ export declare interface DistillationSpec {
2773
+ /** The GCS URI of the prompt dataset to use during distillation. */
2774
+ promptDatasetUri?: string;
2775
+ /** The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models). */
2776
+ baseTeacherModel?: string;
2777
+ /** Optional. Hyperparameters for Distillation. */
2778
+ hyperParameters?: DistillationHyperParameters;
2779
+ /** Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts. */
2780
+ pipelineRootDirectory?: string;
2781
+ /** The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use base_model instead. */
2782
+ studentModel?: string;
2783
+ /** Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. */
2784
+ trainingDatasetUri?: string;
2785
+ /** The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. */
2786
+ tunedTeacherModelSource?: string;
2787
+ /** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
2788
+ validationDatasetUri?: string;
2789
+ }
2790
+
2742
2791
  /** A Document is a collection of Chunks. */
2743
2792
  declare interface Document_2 {
2744
2793
  /** The resource name of the Document.
@@ -3372,6 +3421,12 @@ export declare class Files extends BaseModule {
3372
3421
  * ```
3373
3422
  */
3374
3423
  download(params: types.DownloadFileParameters): Promise<void>;
3424
+ /**
3425
+ * Registers Google Cloud Storage files for use with the API.
3426
+ * This method is only available in Node.js environments.
3427
+ */
3428
+ registerFiles(params: types.RegisterFilesParameters): Promise<types.RegisterFilesResponse>;
3429
+ protected _registerFiles(params: types.InternalRegisterFilesParameters): Promise<types.RegisterFilesResponse>;
3375
3430
  private listInternal;
3376
3431
  private createInternal;
3377
3432
  /**
@@ -3404,6 +3459,7 @@ export declare class Files extends BaseModule {
3404
3459
  * ```
3405
3460
  */
3406
3461
  delete(params: types.DeleteFileParameters): Promise<types.DeleteFileResponse>;
3462
+ private registerFilesInternal;
3407
3463
  }
3408
3464
 
3409
3465
  /** Tool to retrieve knowledge from the File Search Stores. */
@@ -3906,7 +3962,7 @@ declare interface FunctionResultContent {
3906
3962
 
3907
3963
  declare namespace FunctionResultContent {
3908
3964
  interface Items {
3909
- items?: Array<string | InteractionsAPI.ImageContent | unknown>;
3965
+ items?: Array<InteractionsAPI.TextContent | InteractionsAPI.ImageContent | unknown>;
3910
3966
  }
3911
3967
  }
3912
3968
 
@@ -5642,6 +5698,8 @@ export declare class InlinedResponse {
5642
5698
  /** The response to the request.
5643
5699
  */
5644
5700
  response?: GenerateContentResponse;
5701
+ /** The metadata to be associated with the request. */
5702
+ metadata?: Record<string, string>;
5645
5703
  /** The error encountered while processing the request.
5646
5704
  */
5647
5705
  error?: JobError;
@@ -5702,6 +5760,18 @@ declare interface InteractionCancelParams {
5702
5760
  api_version?: string;
5703
5761
  }
5704
5762
 
5763
+ declare interface InteractionCompleteEvent {
5764
+ /**
5765
+ * The event_id token to be used to resume the interaction stream, from this event.
5766
+ */
5767
+ event_id?: string;
5768
+ event_type?: 'interaction.complete';
5769
+ /**
5770
+ * The Interaction resource.
5771
+ */
5772
+ interaction?: Interaction;
5773
+ }
5774
+
5705
5775
  declare type InteractionCreateParams = CreateModelInteractionParamsNonStreaming | CreateModelInteractionParamsStreaming | CreateAgentInteractionParamsNonStreaming | CreateAgentInteractionParamsStreaming;
5706
5776
 
5707
5777
  declare interface InteractionDeleteParams {
@@ -5713,18 +5783,6 @@ declare interface InteractionDeleteParams {
5713
5783
 
5714
5784
  declare type InteractionDeleteResponse = unknown;
5715
5785
 
5716
- declare interface InteractionEvent {
5717
- /**
5718
- * The event_id token to be used to resume the interaction stream, from this event.
5719
- */
5720
- event_id?: string;
5721
- event_type?: 'interaction.start' | 'interaction.complete';
5722
- /**
5723
- * The Interaction resource.
5724
- */
5725
- interaction?: Interaction;
5726
- }
5727
-
5728
5786
  declare type InteractionGetParams = InteractionGetParamsNonStreaming | InteractionGetParamsStreaming;
5729
5787
 
5730
5788
  declare namespace InteractionGetParams {
@@ -5737,6 +5795,10 @@ declare interface InteractionGetParamsBase {
5737
5795
  * Path param: Which version of the API to use.
5738
5796
  */
5739
5797
  api_version?: string;
5798
+ /**
5799
+ * Query param: If set to true, includes the input in the response.
5800
+ */
5801
+ include_input?: boolean;
5740
5802
  /**
5741
5803
  * Query param: Optional. If set, resumes the interaction stream from the next chunk after the event marked by the event id. Can only be used if `stream` is true.
5742
5804
  */
@@ -5765,7 +5827,7 @@ export declare class Interactions extends BaseInteractions {
5765
5827
  }
5766
5828
 
5767
5829
  export declare namespace Interactions {
5768
- export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type AudioMimeType as AudioMimeType, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DocumentMimeType as DocumentMimeType, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileSearchCallContent as FileSearchCallContent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type ImageMimeType as ImageMimeType, type Interaction as Interaction, type InteractionEvent as InteractionEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoice as ToolChoice, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type VideoMimeType as VideoMimeType, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
5830
+ export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type AudioMimeType as AudioMimeType, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DocumentMimeType as DocumentMimeType, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileSearchCallContent as FileSearchCallContent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type ImageMimeType as ImageMimeType, type Interaction as Interaction, type InteractionCompleteEvent as InteractionCompleteEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStartEvent as InteractionStartEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoice as ToolChoice, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type VideoMimeType as VideoMimeType, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
5769
5831
  }
5770
5832
 
5771
5833
  declare namespace InteractionsAPI {
@@ -5802,8 +5864,9 @@ declare namespace InteractionsAPI {
5802
5864
  ImageContent,
5803
5865
  ImageMimeType,
5804
5866
  Interaction,
5805
- InteractionEvent,
5867
+ InteractionCompleteEvent,
5806
5868
  InteractionSSEEvent,
5869
+ InteractionStartEvent,
5807
5870
  InteractionStatusUpdate,
5808
5871
  MCPServerToolCallContent,
5809
5872
  MCPServerToolResultContent,
@@ -5841,7 +5904,19 @@ declare namespace InteractionsAPI {
5841
5904
  }
5842
5905
  }
5843
5906
 
5844
- declare type InteractionSSEEvent = InteractionEvent | InteractionStatusUpdate | ContentStart | ContentDelta | ContentStop | ErrorEvent_2;
5907
+ declare type InteractionSSEEvent = InteractionStartEvent | InteractionCompleteEvent | InteractionStatusUpdate | ContentStart | ContentDelta | ContentStop | ErrorEvent_2;
5908
+
5909
+ declare interface InteractionStartEvent {
5910
+ /**
5911
+ * The event_id token to be used to resume the interaction stream, from this event.
5912
+ */
5913
+ event_id?: string;
5914
+ event_type?: 'interaction.start';
5915
+ /**
5916
+ * The Interaction resource.
5917
+ */
5918
+ interaction?: Interaction;
5919
+ }
5845
5920
 
5846
5921
  declare interface InteractionStatusUpdate {
5847
5922
  /**
@@ -5853,6 +5928,14 @@ declare interface InteractionStatusUpdate {
5853
5928
  status?: 'in_progress' | 'requires_action' | 'completed' | 'failed' | 'cancelled';
5854
5929
  }
5855
5930
 
5931
+ /** Parameters for the private _Register method. */
5932
+ export declare interface InternalRegisterFilesParameters {
5933
+ /** The Google Cloud Storage URIs to register. Example: `gs://bucket/object`. */
5934
+ uris: string[];
5935
+ /** Used to override the default configuration. */
5936
+ config?: RegisterFilesConfig;
5937
+ }
5938
+
5856
5939
  declare class InternalServerError extends APIError<number, Headers> {
5857
5940
  }
5858
5941
 
@@ -8311,6 +8394,41 @@ declare interface ReferenceImageAPIInternal {
8311
8394
  subjectImageConfig?: types.SubjectReferenceConfig;
8312
8395
  }
8313
8396
 
8397
+ /** Used to override the default configuration. */
8398
+ export declare interface RegisterFilesConfig {
8399
+ /** Used to override HTTP request options. */
8400
+ httpOptions?: HttpOptions;
8401
+ /** Abort signal which can be used to cancel the request.
8402
+
8403
+ NOTE: AbortSignal is a client-only operation. Using it to cancel an
8404
+ operation will not cancel the request in the service. You will still
8405
+ be charged usage for any applicable operations.
8406
+ */
8407
+ abortSignal?: AbortSignal;
8408
+ }
8409
+
8410
+ /** Generates the parameters for the private registerFiles method. */
8411
+ export declare interface RegisterFilesParameters {
8412
+ /**
8413
+ * The authentication object.
8414
+ */
8415
+ auth?: any;
8416
+ /**
8417
+ * The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.
8418
+ */
8419
+ uris: string[];
8420
+ /** Used to override the default configuration. */
8421
+ config?: RegisterFilesConfig;
8422
+ }
8423
+
8424
+ /** Response for the _register file method. */
8425
+ export declare class RegisterFilesResponse {
8426
+ /** Used to retain the full HTTP response. */
8427
+ sdkHttpResponse?: HttpResponse;
8428
+ /** The registered files. */
8429
+ files?: File_2[];
8430
+ }
8431
+
8314
8432
  /** Represents a recorded session. */
8315
8433
  export declare interface ReplayFile {
8316
8434
  replayId?: string;
@@ -9618,6 +9736,8 @@ export declare interface TuningJob {
9618
9736
  supervisedTuningSpec?: SupervisedTuningSpec;
9619
9737
  /** Tuning Spec for Preference Optimization. */
9620
9738
  preferenceOptimizationSpec?: PreferenceOptimizationSpec;
9739
+ /** Tuning Spec for Distillation. */
9740
+ distillationSpec?: DistillationSpec;
9621
9741
  /** Output only. The tuning data statistics associated with this TuningJob. */
9622
9742
  tuningDataStats?: TuningDataStats;
9623
9743
  /** Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key. */
@@ -9651,7 +9771,11 @@ export declare enum TuningMethod {
9651
9771
  /**
9652
9772
  * Preference optimization tuning.
9653
9773
  */
9654
- PREFERENCE_TUNING = "PREFERENCE_TUNING"
9774
+ PREFERENCE_TUNING = "PREFERENCE_TUNING",
9775
+ /**
9776
+ * Distillation tuning.
9777
+ */
9778
+ DISTILLATION = "DISTILLATION"
9655
9779
  }
9656
9780
 
9657
9781
  /** Tuning mode. This enum is not supported in Gemini API. */
@@ -10096,6 +10220,8 @@ declare namespace types {
10096
10220
  SupervisedTuningSpec,
10097
10221
  PreferenceOptimizationHyperParameters,
10098
10222
  PreferenceOptimizationSpec,
10223
+ DistillationHyperParameters,
10224
+ DistillationSpec,
10099
10225
  GoogleRpcStatus,
10100
10226
  PreTunedModel,
10101
10227
  DatasetDistributionDistributionBucket,
@@ -10182,6 +10308,9 @@ declare namespace types {
10182
10308
  DeleteFileConfig,
10183
10309
  DeleteFileParameters,
10184
10310
  DeleteFileResponse,
10311
+ RegisterFilesConfig,
10312
+ InternalRegisterFilesParameters,
10313
+ RegisterFilesResponse,
10185
10314
  InlinedRequest,
10186
10315
  BatchJobSource,
10187
10316
  JobError,
@@ -10241,6 +10370,7 @@ declare namespace types {
10241
10370
  LiveServerMessage,
10242
10371
  OperationFromAPIResponseParameters,
10243
10372
  GenerationConfigThinkingConfig,
10373
+ RegisterFilesParameters,
10244
10374
  AutomaticActivityDetection,
10245
10375
  RealtimeInputConfig,
10246
10376
  SessionResumptionConfig,
@@ -978,6 +978,10 @@ var TuningMethod;
978
978
  * Preference optimization tuning.
979
979
  */
980
980
  TuningMethod["PREFERENCE_TUNING"] = "PREFERENCE_TUNING";
981
+ /**
982
+ * Distillation tuning.
983
+ */
984
+ TuningMethod["DISTILLATION"] = "DISTILLATION";
981
985
  })(TuningMethod || (TuningMethod = {}));
982
986
  /** State for the lifecycle of a Document. */
983
987
  var DocumentState;
@@ -954,6 +954,10 @@ var TuningMethod;
954
954
  * Preference optimization tuning.
955
955
  */
956
956
  TuningMethod["PREFERENCE_TUNING"] = "PREFERENCE_TUNING";
957
+ /**
958
+ * Distillation tuning.
959
+ */
960
+ TuningMethod["DISTILLATION"] = "DISTILLATION";
957
961
  })(TuningMethod || (TuningMethod = {}));
958
962
  /** State for the lifecycle of a Document. */
959
963
  var DocumentState;