@langchain/google-genai 2.0.1 → 2.0.3

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,19 @@
1
1
  # @langchain/google-genai
2
2
 
3
+ ## 2.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`bd2c46e`](https://github.com/langchain-ai/langchainjs/commit/bd2c46e09e661d9ac766c09e71bc6687d6fc811c), [`487378b`](https://github.com/langchain-ai/langchainjs/commit/487378bf14277659c8ca0ef06ea0f9836b818ff4), [`138e7fb`](https://github.com/langchain-ai/langchainjs/commit/138e7fb6280705457079863bedb238b16b322032)]:
8
+ - @langchain/core@1.1.3
9
+
10
+ ## 2.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`833f578`](https://github.com/langchain-ai/langchainjs/commit/833f57834dc3aa64e4cfdd7499f865b2ab41462a)]:
15
+ - @langchain/core@1.1.2
16
+
3
17
  ## 2.0.1
4
18
 
5
19
  ### 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; // default value chosen based on model
521
+ temperature?: number;
522
522
  maxOutputTokens?: number;
523
- topP?: number; // default value chosen based on model
524
- topK?: number; // default value chosen based on model
523
+ topP?: number;
524
+ topK?: number;
525
525
  stopSequences: string[];
526
526
  safetySettings?: SafetySetting[];
527
527
  apiKey?: string;
@@ -562,16 +562,8 @@ declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerativeAICha
562
562
  * ```
563
563
  */
564
564
  get profile(): ModelProfile;
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, {
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, {
575
567
  raw: BaseMessage;
576
568
  parsed: RunOutput;
577
569
  }>;
@@ -518,10 +518,10 @@ declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerativeAICha
518
518
  apiKey: string;
519
519
  };
520
520
  model: string;
521
- temperature?: number; // default value chosen based on model
521
+ temperature?: number;
522
522
  maxOutputTokens?: number;
523
- topP?: number; // default value chosen based on model
524
- topK?: number; // default value chosen based on model
523
+ topP?: number;
524
+ topK?: number;
525
525
  stopSequences: string[];
526
526
  safetySettings?: SafetySetting[];
527
527
  apiKey?: string;
@@ -562,16 +562,8 @@ declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerativeAICha
562
562
  * ```
563
563
  */
564
564
  get profile(): ModelProfile;
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, {
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, {
575
567
  raw: BaseMessage;
576
568
  parsed: RunOutput;
577
569
  }>;
@@ -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; // Max batch size for embedDocuments set by GenerativeModel client's batchEmbedContents call
79
+ maxBatchSize: number;
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; // Max batch size for embedDocuments set by GenerativeModel client's batchEmbedContents call
79
+ maxBatchSize: number;
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.1",
3
+ "version": "2.0.3",
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.1"
21
+ "@langchain/core": "1.1.3"
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.1",
39
+ "@langchain/core": "1.1.3",
40
40
  "@langchain/eslint": "0.1.1",
41
- "@langchain/standard-tests": "0.0.4"
41
+ "@langchain/standard-tests": "0.0.6"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"