@langchain/google-genai 0.2.3 → 0.2.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/dist/utils/common.cjs +1 -0
- package/dist/utils/common.js +1 -0
- package/package.json +4 -4
package/dist/utils/common.cjs
CHANGED
|
@@ -30,6 +30,7 @@ function convertAuthorToRole(author) {
|
|
|
30
30
|
* Note: Gemini currently is not supporting system messages
|
|
31
31
|
* we will convert them to human messages and merge with following
|
|
32
32
|
* */
|
|
33
|
+
case "supervisor":
|
|
33
34
|
case "ai":
|
|
34
35
|
case "model": // getMessageAuthor returns message.name. code ex.: return message.name ?? type;
|
|
35
36
|
return "model";
|
package/dist/utils/common.js
CHANGED
|
@@ -26,6 +26,7 @@ export function convertAuthorToRole(author) {
|
|
|
26
26
|
* Note: Gemini currently is not supporting system messages
|
|
27
27
|
* we will convert them to human messages and merge with following
|
|
28
28
|
* */
|
|
29
|
+
case "supervisor":
|
|
29
30
|
case "ai":
|
|
30
31
|
case "model": // getMessageAuthor returns message.name. code ex.: return message.name ?? type;
|
|
31
32
|
return "model";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google-genai",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Google Generative AI integration for LangChain.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@jest/globals": "^29.5.0",
|
|
47
|
-
"@langchain/core": "
|
|
47
|
+
"@langchain/core": "workspace:*",
|
|
48
48
|
"@langchain/scripts": ">=0.1.0 <0.2.0",
|
|
49
49
|
"@langchain/standard-tests": "0.0.0",
|
|
50
50
|
"@swc/core": "^1.3.90",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"jest": "^29.5.0",
|
|
65
65
|
"jest-environment-node": "^29.6.4",
|
|
66
66
|
"prettier": "^2.8.3",
|
|
67
|
-
"release-it": "^
|
|
67
|
+
"release-it": "^18.1.2",
|
|
68
68
|
"rollup": "^4.5.2",
|
|
69
69
|
"ts-jest": "^29.1.0",
|
|
70
70
|
"typescript": "<5.2.0",
|
|
@@ -92,4 +92,4 @@
|
|
|
92
92
|
"index.d.ts",
|
|
93
93
|
"index.d.cts"
|
|
94
94
|
]
|
|
95
|
-
}
|
|
95
|
+
}
|