@langchain/google-vertexai-web 0.2.8 → 0.2.10

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.
@@ -14,19 +14,19 @@ const google_webauth_1 = require("@langchain/google-webauth");
14
14
  * export GOOGLE_VERTEX_AI_WEB_CREDENTIALS={"type":"service_account","project_id":"YOUR_PROJECT-12345",...}
15
15
  * ```
16
16
  *
17
- * ## [Constructor args](https://api.js.langchain.com/classes/langchain_community_chat_models_googlevertexai_web.ChatGoogleVertexAI.html#constructor)
17
+ * ## [Constructor args](https://api.js.langchain.com/classes/_langchain_google_vertexai_web.index.ChatVertexAI.html#constructor)
18
18
  *
19
19
  * ## [Runtime args](https://api.js.langchain.com/interfaces/langchain_google_common_types.GoogleAIBaseLanguageModelCallOptions.html)
20
20
  *
21
21
  * Runtime args can be passed as the second argument to any of the base runnable methods `.invoke`. `.stream`, `.batch`, etc.
22
- * They can also be passed via `.bind`, or the second arg in `.bindTools`, like shown in the examples below:
22
+ * They can also be passed via `.withConfig`, or the second arg in `.bindTools`, like shown in the examples below:
23
23
  *
24
24
  * ```typescript
25
- * // When calling `.bind`, call options should be passed via the first argument
26
- * const llmWithArgsBound = llm.bind({
27
- * stop: ["\n"],
28
- * tools: [...],
29
- * });
25
+ * // If binding tools along with other options, chain `.bindTools` and `.withConfig`
26
+ * const llmWithArgsBound = llm.bindTools([...]) // tools array
27
+ * .withConfig({
28
+ * stop: ["\n"], // other call options
29
+ * });
30
30
  *
31
31
  * // When calling `.bindTools`, call options should be passed via the second argument
32
32
  * const llmWithTools = llm.bindTools(
@@ -16,19 +16,19 @@ export interface ChatVertexAIInput extends ChatGoogleInput {
16
16
  * export GOOGLE_VERTEX_AI_WEB_CREDENTIALS={"type":"service_account","project_id":"YOUR_PROJECT-12345",...}
17
17
  * ```
18
18
  *
19
- * ## [Constructor args](https://api.js.langchain.com/classes/langchain_community_chat_models_googlevertexai_web.ChatGoogleVertexAI.html#constructor)
19
+ * ## [Constructor args](https://api.js.langchain.com/classes/_langchain_google_vertexai_web.index.ChatVertexAI.html#constructor)
20
20
  *
21
21
  * ## [Runtime args](https://api.js.langchain.com/interfaces/langchain_google_common_types.GoogleAIBaseLanguageModelCallOptions.html)
22
22
  *
23
23
  * Runtime args can be passed as the second argument to any of the base runnable methods `.invoke`. `.stream`, `.batch`, etc.
24
- * They can also be passed via `.bind`, or the second arg in `.bindTools`, like shown in the examples below:
24
+ * They can also be passed via `.withConfig`, or the second arg in `.bindTools`, like shown in the examples below:
25
25
  *
26
26
  * ```typescript
27
- * // When calling `.bind`, call options should be passed via the first argument
28
- * const llmWithArgsBound = llm.bind({
29
- * stop: ["\n"],
30
- * tools: [...],
31
- * });
27
+ * // If binding tools along with other options, chain `.bindTools` and `.withConfig`
28
+ * const llmWithArgsBound = llm.bindTools([...]) // tools array
29
+ * .withConfig({
30
+ * stop: ["\n"], // other call options
31
+ * });
32
32
  *
33
33
  * // When calling `.bindTools`, call options should be passed via the second argument
34
34
  * const llmWithTools = llm.bindTools(
@@ -11,19 +11,19 @@ import { ChatGoogle } from "@langchain/google-webauth";
11
11
  * export GOOGLE_VERTEX_AI_WEB_CREDENTIALS={"type":"service_account","project_id":"YOUR_PROJECT-12345",...}
12
12
  * ```
13
13
  *
14
- * ## [Constructor args](https://api.js.langchain.com/classes/langchain_community_chat_models_googlevertexai_web.ChatGoogleVertexAI.html#constructor)
14
+ * ## [Constructor args](https://api.js.langchain.com/classes/_langchain_google_vertexai_web.index.ChatVertexAI.html#constructor)
15
15
  *
16
16
  * ## [Runtime args](https://api.js.langchain.com/interfaces/langchain_google_common_types.GoogleAIBaseLanguageModelCallOptions.html)
17
17
  *
18
18
  * Runtime args can be passed as the second argument to any of the base runnable methods `.invoke`. `.stream`, `.batch`, etc.
19
- * They can also be passed via `.bind`, or the second arg in `.bindTools`, like shown in the examples below:
19
+ * They can also be passed via `.withConfig`, or the second arg in `.bindTools`, like shown in the examples below:
20
20
  *
21
21
  * ```typescript
22
- * // When calling `.bind`, call options should be passed via the first argument
23
- * const llmWithArgsBound = llm.bind({
24
- * stop: ["\n"],
25
- * tools: [...],
26
- * });
22
+ * // If binding tools along with other options, chain `.bindTools` and `.withConfig`
23
+ * const llmWithArgsBound = llm.bindTools([...]) // tools array
24
+ * .withConfig({
25
+ * stop: ["\n"], // other call options
26
+ * });
27
27
  *
28
28
  * // When calling `.bindTools`, call options should be passed via the second argument
29
29
  * const llmWithTools = llm.bindTools(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/google-vertexai-web",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "LangChain.js support for Google Vertex AI Web",
5
5
  "type": "module",
6
6
  "engines": {
@@ -32,15 +32,15 @@
32
32
  "author": "LangChain",
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@langchain/google-webauth": "^0.2.8"
35
+ "@langchain/google-webauth": "^0.2.10"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@langchain/core": ">=0.3.55 <0.4.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@jest/globals": "^29.5.0",
42
- "@langchain/core": "0.3.55",
43
- "@langchain/google-common": "^0.2.8",
42
+ "@langchain/core": "0.3.57",
43
+ "@langchain/google-common": "^0.2.10",
44
44
  "@langchain/scripts": ">=0.1.0 <0.2.0",
45
45
  "@langchain/standard-tests": "0.0.0",
46
46
  "@swc/core": "^1.3.90",