@google/genai 2.0.1 → 2.2.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.
@@ -595,10 +595,10 @@ declare interface BatchJobSource {
595
595
 
596
596
  declare type BatchJobSourceUnion = BatchJobSource | InlinedRequest[] | string;
597
597
 
598
- /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
598
+ /** Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
599
599
  declare enum Behavior {
600
600
  /**
601
- * This value is unused.
601
+ * This value is unspecified.
602
602
  */
603
603
  UNSPECIFIED = "UNSPECIFIED",
604
604
  /**
@@ -2527,7 +2527,7 @@ declare interface FunctionDeclaration {
2527
2527
  response?: Schema;
2528
2528
  /** Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. */
2529
2529
  responseJsonSchema?: unknown;
2530
- /** Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This field is not supported in Vertex AI. */
2530
+ /** Optional. Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
2531
2531
  behavior?: Behavior;
2532
2532
  }
2533
2533
 
@@ -530,11 +530,11 @@ var PhishBlockThreshold;
530
530
  */
531
531
  PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
532
532
  })(PhishBlockThreshold || (PhishBlockThreshold = {}));
533
- /** Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. This enum is not supported in Vertex AI. */
533
+ /** Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
534
534
  var Behavior;
535
535
  (function (Behavior) {
536
536
  /**
537
- * This value is unused.
537
+ * This value is unspecified.
538
538
  */
539
539
  Behavior["UNSPECIFIED"] = "UNSPECIFIED";
540
540
  /**
@@ -2050,7 +2050,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
2050
2050
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
2051
2051
  const USER_AGENT_HEADER = 'User-Agent';
2052
2052
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
2053
- const SDK_VERSION = '2.0.1'; // x-release-please-version
2053
+ const SDK_VERSION = '2.2.0'; // x-release-please-version
2054
2054
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
2055
2055
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
2056
2056
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';