@langchain/google-genai 2.0.3 → 2.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @langchain/google-genai
2
2
 
3
+ ## 2.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`0bade90`](https://github.com/langchain-ai/langchainjs/commit/0bade90ed47c7988ed86f1e695a28273c7b3df50), [`6c40d00`](https://github.com/langchain-ai/langchainjs/commit/6c40d00e926f377d249c2919549381522eac8ed1)]:
8
+ - @langchain/core@1.1.4
9
+
3
10
  ## 2.0.3
4
11
 
5
12
  ### Patch Changes
@@ -518,10 +518,10 @@ declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerativeAICha
518
518
  apiKey: string;
519
519
  };
520
520
  model: string;
521
- temperature?: number;
521
+ temperature?: number; // default value chosen based on model
522
522
  maxOutputTokens?: number;
523
- topP?: number;
524
- topK?: number;
523
+ topP?: number; // default value chosen based on model
524
+ topK?: number; // default value chosen based on model
525
525
  stopSequences: string[];
526
526
  safetySettings?: SafetySetting[];
527
527
  apiKey?: string;
@@ -562,8 +562,16 @@ declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerativeAICha
562
562
  * ```
563
563
  */
564
564
  get profile(): ModelProfile;
565
- withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<false>): Runnable<BaseLanguageModelInput, RunOutput>;
566
- withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<true>): Runnable<BaseLanguageModelInput, {
565
+ withStructuredOutput<
566
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
567
+ RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput>
568
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
569
+ | Record<string, any>, config?: StructuredOutputMethodOptions<false>): Runnable<BaseLanguageModelInput, RunOutput>;
570
+ withStructuredOutput<
571
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
572
+ RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput>
573
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
574
+ | Record<string, any>, config?: StructuredOutputMethodOptions<true>): Runnable<BaseLanguageModelInput, {
567
575
  raw: BaseMessage;
568
576
  parsed: RunOutput;
569
577
  }>;
@@ -518,10 +518,10 @@ declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerativeAICha
518
518
  apiKey: string;
519
519
  };
520
520
  model: string;
521
- temperature?: number;
521
+ temperature?: number; // default value chosen based on model
522
522
  maxOutputTokens?: number;
523
- topP?: number;
524
- topK?: number;
523
+ topP?: number; // default value chosen based on model
524
+ topK?: number; // default value chosen based on model
525
525
  stopSequences: string[];
526
526
  safetySettings?: SafetySetting[];
527
527
  apiKey?: string;
@@ -562,8 +562,16 @@ declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerativeAICha
562
562
  * ```
563
563
  */
564
564
  get profile(): ModelProfile;
565
- withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<false>): Runnable<BaseLanguageModelInput, RunOutput>;
566
- withStructuredOutput<RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput> | Record<string, any>, config?: StructuredOutputMethodOptions<true>): Runnable<BaseLanguageModelInput, {
565
+ withStructuredOutput<
566
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
567
+ RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput>
568
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
569
+ | Record<string, any>, config?: StructuredOutputMethodOptions<false>): Runnable<BaseLanguageModelInput, RunOutput>;
570
+ withStructuredOutput<
571
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
572
+ RunOutput extends Record<string, any> = Record<string, any>>(outputSchema: InteropZodType<RunOutput>
573
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
574
+ | Record<string, any>, config?: StructuredOutputMethodOptions<true>): Runnable<BaseLanguageModelInput, {
567
575
  raw: BaseMessage;
568
576
  parsed: RunOutput;
569
577
  }>;
@@ -76,7 +76,7 @@ declare class GoogleGenerativeAIEmbeddings extends Embeddings implements GoogleG
76
76
  taskType?: TaskType;
77
77
  title?: string;
78
78
  stripNewLines: boolean;
79
- maxBatchSize: number;
79
+ maxBatchSize: number; // Max batch size for embedDocuments set by GenerativeModel client's batchEmbedContents call
80
80
  private client;
81
81
  constructor(fields?: GoogleGenerativeAIEmbeddingsParams);
82
82
  private _convertToContent;
@@ -76,7 +76,7 @@ declare class GoogleGenerativeAIEmbeddings extends Embeddings implements GoogleG
76
76
  taskType?: TaskType;
77
77
  title?: string;
78
78
  stripNewLines: boolean;
79
- maxBatchSize: number;
79
+ maxBatchSize: number; // Max batch size for embedDocuments set by GenerativeModel client's batchEmbedContents call
80
80
  private client;
81
81
  constructor(fields?: GoogleGenerativeAIEmbeddingsParams);
82
82
  private _convertToContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-genai",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Google Generative AI integration for LangChain.js",
5
5
  "author": "LangChain",
6
6
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "uuid": "^11.1.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@langchain/core": "1.1.3"
21
+ "@langchain/core": "1.1.4"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@jest/globals": "^29.5.0",
@@ -36,9 +36,9 @@
36
36
  "ts-jest": "^29.1.0",
37
37
  "typescript": "~5.8.3",
38
38
  "zod": "^3.25.76",
39
- "@langchain/core": "1.1.3",
39
+ "@langchain/core": "1.1.4",
40
40
  "@langchain/eslint": "0.1.1",
41
- "@langchain/standard-tests": "0.0.6"
41
+ "@langchain/standard-tests": "0.0.7"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"