@google/genai 2.4.0 → 2.5.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.
package/dist/genai.d.ts CHANGED
@@ -84,7 +84,7 @@ declare interface Agent {
84
84
  /**
85
85
  * The environment configuration for the agent.
86
86
  */
87
- base_environment?: string | InteractionsAPI.Environment;
87
+ base_environment?: InteractionsAPI.Environment | string;
88
88
  /**
89
89
  * Agent description for developers to quickly read and understand.
90
90
  */
@@ -164,7 +164,7 @@ declare interface AgentCreateParams {
164
164
  /**
165
165
  * Body param: The environment configuration for the agent.
166
166
  */
167
- base_environment?: string | InteractionsAPI.Environment;
167
+ base_environment?: InteractionsAPI.Environment | string;
168
168
  /**
169
169
  * Body param: Agent description for developers to quickly read and understand.
170
170
  */
@@ -1447,7 +1447,7 @@ export declare interface BatchJobOutputInfo {
1447
1447
  vertexMultimodalDatasetName?: string;
1448
1448
  /** The full path of the Cloud Storage directory created, into which the prediction output is written. */
1449
1449
  gcsOutputDirectory?: string;
1450
- /** The name of the BigQuery table created, in `predictions_<timestamp>` format, into which the prediction output is written. */
1450
+ /** The name of the BigQuery table created, in `predictions_TIMESTAMP` format, into which the prediction output is written. */
1451
1451
  bigqueryOutputTable?: string;
1452
1452
  }
1453
1453
 
@@ -8272,7 +8272,7 @@ export declare interface Model {
8272
8272
  * The model that will complete your prompt.\n\nSee
8273
8273
  * [models](https://ai.google.dev/gemini-api/docs/models) for additional details.
8274
8274
  */
8275
- declare type Model_2 = 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'lyria-3-clip-preview' | 'lyria-3-pro-preview' | (string & {});
8275
+ declare type Model_2 = 'gemini-2.5-computer-use-preview-10-2025' | 'gemini-2.5-flash' | 'gemini-2.5-flash-image' | 'gemini-2.5-flash-lite' | 'gemini-2.5-flash-lite-preview-09-2025' | 'gemini-2.5-flash-native-audio-preview-12-2025' | 'gemini-2.5-flash-preview-09-2025' | 'gemini-2.5-flash-preview-tts' | 'gemini-2.5-pro' | 'gemini-2.5-pro-preview-tts' | 'gemini-3-flash-preview' | 'gemini-3-pro-image-preview' | 'gemini-3-pro-preview' | 'gemini-3.1-pro-preview' | 'gemini-3.1-flash-image-preview' | 'gemini-3.1-flash-lite' | 'gemini-3.1-flash-lite-preview' | 'gemini-3.1-flash-tts-preview' | 'lyria-3-clip-preview' | 'lyria-3-pro-preview' | 'gemini-3.5-flash' | (string & {});
8276
8276
 
8277
8277
  /** Configuration for Model Armor. Model Armor is a Google Cloud service that provides safety and security filtering for prompts and responses. It helps protect your AI applications from risks such as harmful content, sensitive data leakage, and prompt injection attacks. This data type is not supported in Gemini API. */
8278
8278
  export declare interface ModelArmorConfig {
package/dist/index.cjs CHANGED
@@ -7596,7 +7596,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
7596
7596
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
7597
7597
  const USER_AGENT_HEADER = 'User-Agent';
7598
7598
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
7599
- const SDK_VERSION = '2.4.0'; // x-release-please-version
7599
+ const SDK_VERSION = '2.5.0'; // x-release-please-version
7600
7600
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
7601
7601
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
7602
7602
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
package/dist/index.mjs CHANGED
@@ -7594,7 +7594,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
7594
7594
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
7595
7595
  const USER_AGENT_HEADER = 'User-Agent';
7596
7596
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
7597
- const SDK_VERSION = '2.4.0'; // x-release-please-version
7597
+ const SDK_VERSION = '2.5.0'; // x-release-please-version
7598
7598
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
7599
7599
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
7600
7600
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';