@langchain/anthropic 0.3.15 → 0.3.16

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.
@@ -155,7 +155,7 @@ function _formatContent(content) {
155
155
  contentPartCopy.input = JSON.parse(contentPartCopy.input);
156
156
  }
157
157
  catch {
158
- // no-op
158
+ contentPartCopy.input = {};
159
159
  }
160
160
  }
161
161
  // TODO: Fix when SDK types are fixed
@@ -151,7 +151,7 @@ function _formatContent(content) {
151
151
  contentPartCopy.input = JSON.parse(contentPartCopy.input);
152
152
  }
153
153
  catch {
154
- // no-op
154
+ contentPartCopy.input = {};
155
155
  }
156
156
  }
157
157
  // TODO: Fix when SDK types are fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/anthropic",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Anthropic integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {