@langchain/google-genai 0.0.16 → 0.0.17

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.
@@ -150,7 +150,7 @@ export declare class ChatGoogleGenerativeAI extends BaseChatModel<GoogleGenerati
150
150
  private client;
151
151
  get _isMultimodalModel(): boolean;
152
152
  constructor(fields?: GoogleGenerativeAIChatInput);
153
- protected getLsParams(options: this["ParsedCallOptions"]): LangSmithParams;
153
+ getLsParams(options: this["ParsedCallOptions"]): LangSmithParams;
154
154
  _combineLLMOutput(): never[];
155
155
  _llmType(): string;
156
156
  bindTools(tools: (StructuredToolInterface | Record<string, unknown>)[], kwargs?: Partial<GoogleGenerativeAIChatCallOptions>): Runnable<BaseLanguageModelInput, AIMessageChunk, GoogleGenerativeAIChatCallOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-genai",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Sample integration for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -14,27 +14,23 @@
14
14
  },
15
15
  "homepage": "https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain-google-genai/",
16
16
  "scripts": {
17
- "build": "yarn run build:deps && yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts",
18
- "build:deps": "yarn run turbo:command build --filter=@langchain/core",
19
- "build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
20
- "build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
21
- "build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
22
- "build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
17
+ "build": "yarn turbo:command build:internal --filter=@langchain/google-genai",
18
+ "build:internal": "yarn lc-build:v2 --create-entrypoints --pre --tree-shaking",
23
19
  "lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",
24
20
  "lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
25
21
  "lint": "yarn lint:eslint && yarn lint:dpdm",
26
22
  "lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
27
- "clean": "rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre",
23
+ "clean": "rm -rf .turbo dist/",
28
24
  "prepack": "yarn build",
29
- "test": "yarn build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
30
- "test:watch": "yarn build:deps && NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
31
- "test:single": "yarn build:deps && NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
32
- "test:int": "yarn build:deps && NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
25
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",
26
+ "test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch --testPathIgnorePatterns=\\.int\\.test.ts",
27
+ "test:single": "NODE_OPTIONS=--experimental-vm-modules yarn run jest --config jest.config.cjs --testTimeout 100000",
28
+ "test:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
29
+ "test:standard:unit": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.test.ts --testTimeout 100000 --maxWorkers=50%",
30
+ "test:standard:int": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\.standard\\.int\\.test.ts --testTimeout 100000 --maxWorkers=50%",
31
+ "test:standard": "yarn test:standard:unit && yarn test:standard:int",
33
32
  "format": "prettier --config .prettierrc --write \"src\"",
34
- "format:check": "prettier --config .prettierrc --check \"src\"",
35
- "move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
36
- "create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
37
- "check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
33
+ "format:check": "prettier --config .prettierrc --check \"src\""
38
34
  },
39
35
  "author": "LangChain",
40
36
  "license": "MIT",
@@ -46,6 +42,7 @@
46
42
  "devDependencies": {
47
43
  "@jest/globals": "^29.5.0",
48
44
  "@langchain/scripts": "~0.0.14",
45
+ "@langchain/standard-tests": "workspace:*",
49
46
  "@swc/core": "^1.3.90",
50
47
  "@swc/jest": "^0.2.29",
51
48
  "@tsconfig/recommended": "^1.0.3",