@langchain/google-common 2.1.29 → 2.1.30

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,13 @@
1
1
  # @langchain/google-common
2
2
 
3
+ ## 2.1.30
4
+
5
+ ### Patch Changes
6
+
7
+ - [#10814](https://github.com/langchain-ai/langchainjs/pull/10814) [`dfec1b7`](https://github.com/langchain-ai/langchainjs/commit/dfec1b7f8b2c530a43f639dc79d4965a80ea4b79) Thanks [@hntrl](https://github.com/hntrl)! - fix(google): restore structured output parsing with includeRaw and reasoning blocks
8
+
9
+ Ensure structured output parsers read `BaseMessage` text content when `includeRaw: true`, so responses that include reasoning/thought blocks plus JSON text continue to parse correctly.
10
+
3
11
  ## 2.1.29
4
12
 
5
13
  ### Patch Changes
@@ -94,7 +94,7 @@ var ChatGoogleBase = class extends _langchain_core_language_models_chat_models.B
94
94
  streamedConnection;
95
95
  constructor(fields) {
96
96
  super(require_failed_handler.ensureParams(fields));
97
- this._addVersion("@langchain/google-common", "2.1.29");
97
+ this._addVersion("@langchain/google-common", "2.1.30");
98
98
  require_common.copyAndValidateModelParamsInto(fields, this);
99
99
  this.safetyHandler = fields?.safetyHandler ?? new require_gemini.DefaultGeminiSafetyHandler();
100
100
  this.streamUsage = fields?.streamUsage ?? this.streamUsage;
@@ -94,7 +94,7 @@ var ChatGoogleBase = class extends BaseChatModel {
94
94
  streamedConnection;
95
95
  constructor(fields) {
96
96
  super(ensureParams(fields));
97
- this._addVersion("@langchain/google-common", "2.1.29");
97
+ this._addVersion("@langchain/google-common", "2.1.30");
98
98
  copyAndValidateModelParamsInto(fields, this);
99
99
  this.safetyHandler = fields?.safetyHandler ?? new DefaultGeminiSafetyHandler();
100
100
  this.streamUsage = fields?.streamUsage ?? this.streamUsage;
package/dist/llms.cjs CHANGED
@@ -20,7 +20,7 @@ var GoogleLLMConnection = class extends require_connection.AbstractGoogleLLMConn
20
20
  var ProxyChatGoogle = class extends require_chat_models.ChatGoogleBase {
21
21
  constructor(fields) {
22
22
  super(fields);
23
- this._addVersion("@langchain/google-common", "2.1.29");
23
+ this._addVersion("@langchain/google-common", "2.1.30");
24
24
  }
25
25
  buildAbstractedClient(fields) {
26
26
  return fields.connection.client;
package/dist/llms.js CHANGED
@@ -20,7 +20,7 @@ var GoogleLLMConnection = class extends AbstractGoogleLLMConnection {
20
20
  var ProxyChatGoogle = class extends ChatGoogleBase {
21
21
  constructor(fields) {
22
22
  super(fields);
23
- this._addVersion("@langchain/google-common", "2.1.29");
23
+ this._addVersion("@langchain/google-common", "2.1.30");
24
24
  }
25
25
  buildAbstractedClient(fields) {
26
26
  return fields.connection.client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-common",
3
- "version": "2.1.29",
3
+ "version": "2.1.30",
4
4
  "description": "Core types and classes for Google services.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -14,7 +14,7 @@
14
14
  "author": "LangChain",
15
15
  "license": "MIT",
16
16
  "peerDependencies": {
17
- "@langchain/core": "^1.1.42"
17
+ "@langchain/core": "^1.1.43"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/uuid": "^10.0.0",
@@ -24,7 +24,7 @@
24
24
  "typescript": "~5.8.3",
25
25
  "vitest": "^4.1.2",
26
26
  "zod": "^3.25.76",
27
- "@langchain/core": "^1.1.42",
27
+ "@langchain/core": "^1.1.43",
28
28
  "@langchain/tsconfig": "0.0.1"
29
29
  },
30
30
  "publishConfig": {
@@ -95,15 +95,15 @@
95
95
  "CHANGELOG.md",
96
96
  "README.md",
97
97
  "LICENSE",
98
+ "utils.d.cts",
99
+ "utils.cjs",
100
+ "utils.d.ts",
101
+ "utils.js",
98
102
  "types.d.cts",
99
103
  "types.cjs",
100
104
  "types.d.ts",
101
105
  "types.js",
102
- "experimental",
103
- "utils.d.cts",
104
- "utils.cjs",
105
- "utils.d.ts",
106
- "utils.js"
106
+ "experimental"
107
107
  ],
108
108
  "module": "./dist/index.js",
109
109
  "scripts": {