@langchain/google 0.2.9 → 0.2.11
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 +12 -0
- package/dist/chat_models/api-types.d.cts +1 -2
- package/dist/chat_models/api-types.d.ts +1 -2
- package/dist/chat_models/base.cjs +16 -2
- package/dist/chat_models/base.cjs.map +1 -1
- package/dist/chat_models/base.d.cts +6 -5
- package/dist/chat_models/base.d.ts +6 -5
- package/dist/chat_models/base.js +16 -2
- package/dist/chat_models/base.js.map +1 -1
- package/dist/chat_models/index.d.cts +3 -4
- package/dist/chat_models/index.d.ts +3 -4
- package/dist/chat_models/profiles.cjs +14 -0
- package/dist/chat_models/profiles.cjs.map +1 -1
- package/dist/chat_models/profiles.js +14 -0
- package/dist/chat_models/profiles.js.map +1 -1
- package/dist/chat_models/types.d.cts +7 -8
- package/dist/chat_models/types.d.ts +7 -8
- package/dist/clients/index.d.cts +1 -2
- package/dist/clients/index.d.ts +1 -2
- package/dist/clients/node.d.cts +1 -2
- package/dist/clients/node.d.ts +1 -2
- package/dist/converters/params.cjs +9 -1
- package/dist/converters/params.cjs.map +1 -1
- package/dist/converters/params.js +9 -2
- package/dist/converters/params.js.map +1 -1
- package/dist/converters/tools.cjs +8 -3
- package/dist/converters/tools.cjs.map +1 -1
- package/dist/converters/tools.js +8 -3
- package/dist/converters/tools.js.map +1 -1
- package/dist/utils/gcp-auth.d.cts +1 -2
- package/dist/utils/gcp-auth.d.ts +1 -2
- package/dist/utils/handler.d.cts +4 -5
- package/dist/utils/handler.d.ts +4 -5
- package/dist/utils/misc.d.cts +2 -3
- package/dist/utils/misc.d.ts +2 -3
- package/package.json +8 -8
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @see https://cloud.google.com/iam/docs/creating-managing-service-account-keys
|
|
18
18
|
*/
|
|
19
|
-
interface GCPCredentials {
|
|
19
|
+
export interface GCPCredentials {
|
|
20
20
|
/** The type of credential, typically "service_account" */
|
|
21
21
|
type: string;
|
|
22
22
|
/** The GCP project ID associated with this service account */
|
|
@@ -39,5 +39,4 @@ interface GCPCredentials {
|
|
|
39
39
|
client_x509_cert_url: string;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
export { GCPCredentials };
|
|
43
42
|
//# sourceMappingURL=gcp-auth.d.cts.map
|
package/dist/utils/gcp-auth.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @see https://cloud.google.com/iam/docs/creating-managing-service-account-keys
|
|
18
18
|
*/
|
|
19
|
-
interface GCPCredentials {
|
|
19
|
+
export interface GCPCredentials {
|
|
20
20
|
/** The type of credential, typically "service_account" */
|
|
21
21
|
type: string;
|
|
22
22
|
/** The GCP project ID associated with this service account */
|
|
@@ -39,5 +39,4 @@ interface GCPCredentials {
|
|
|
39
39
|
client_x509_cert_url: string;
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
export { GCPCredentials };
|
|
43
42
|
//# sourceMappingURL=gcp-auth.d.ts.map
|
package/dist/utils/handler.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseCallbackHandler } from "@langchain/core/callbacks/base";
|
|
2
2
|
//#region src/utils/handler.d.ts
|
|
3
|
-
interface GoogleCustomEventInfo {
|
|
3
|
+
export interface GoogleCustomEventInfo {
|
|
4
4
|
subEvent: string;
|
|
5
5
|
module: string;
|
|
6
6
|
}
|
|
7
|
-
declare abstract class GoogleRequestCallbackHandler extends BaseCallbackHandler {
|
|
7
|
+
export declare abstract class GoogleRequestCallbackHandler extends BaseCallbackHandler {
|
|
8
8
|
customEventInfo(eventName: string): GoogleCustomEventInfo;
|
|
9
9
|
abstract handleCustomRequestEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
10
10
|
abstract handleCustomResponseEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
11
11
|
abstract handleCustomChunkEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
12
12
|
handleCustomEvent(eventName: string, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
13
13
|
}
|
|
14
|
-
declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {
|
|
14
|
+
export declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {
|
|
15
15
|
name: string;
|
|
16
16
|
shortenStringLength: number;
|
|
17
17
|
log(eventName: string, data: any, tags?: string[]): undefined;
|
|
@@ -19,7 +19,7 @@ declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {
|
|
|
19
19
|
handleCustomResponseEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;
|
|
20
20
|
handleCustomChunkEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;
|
|
21
21
|
}
|
|
22
|
-
declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {
|
|
22
|
+
export declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {
|
|
23
23
|
name: string;
|
|
24
24
|
request: any;
|
|
25
25
|
response: any;
|
|
@@ -29,5 +29,4 @@ declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {
|
|
|
29
29
|
handleCustomChunkEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
|
-
export { GoogleCustomEventInfo, GoogleRequestCallbackHandler, GoogleRequestLogger, GoogleRequestRecorder };
|
|
33
32
|
//# sourceMappingURL=handler.d.cts.map
|
package/dist/utils/handler.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseCallbackHandler } from "@langchain/core/callbacks/base";
|
|
2
2
|
//#region src/utils/handler.d.ts
|
|
3
|
-
interface GoogleCustomEventInfo {
|
|
3
|
+
export interface GoogleCustomEventInfo {
|
|
4
4
|
subEvent: string;
|
|
5
5
|
module: string;
|
|
6
6
|
}
|
|
7
|
-
declare abstract class GoogleRequestCallbackHandler extends BaseCallbackHandler {
|
|
7
|
+
export declare abstract class GoogleRequestCallbackHandler extends BaseCallbackHandler {
|
|
8
8
|
customEventInfo(eventName: string): GoogleCustomEventInfo;
|
|
9
9
|
abstract handleCustomRequestEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
10
10
|
abstract handleCustomResponseEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
11
11
|
abstract handleCustomChunkEvent(eventName: string, eventInfo: GoogleCustomEventInfo, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
12
12
|
handleCustomEvent(eventName: string, data: any, runId: string, tags?: string[], metadata?: Record<string, any>): any;
|
|
13
13
|
}
|
|
14
|
-
declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {
|
|
14
|
+
export declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {
|
|
15
15
|
name: string;
|
|
16
16
|
shortenStringLength: number;
|
|
17
17
|
log(eventName: string, data: any, tags?: string[]): undefined;
|
|
@@ -19,7 +19,7 @@ declare class GoogleRequestLogger extends GoogleRequestCallbackHandler {
|
|
|
19
19
|
handleCustomResponseEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;
|
|
20
20
|
handleCustomChunkEvent(eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, tags?: string[], _metadata?: Record<string, any>): any;
|
|
21
21
|
}
|
|
22
|
-
declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {
|
|
22
|
+
export declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {
|
|
23
23
|
name: string;
|
|
24
24
|
request: any;
|
|
25
25
|
response: any;
|
|
@@ -29,5 +29,4 @@ declare class GoogleRequestRecorder extends GoogleRequestCallbackHandler {
|
|
|
29
29
|
handleCustomChunkEvent(_eventName: string, _eventInfo: GoogleCustomEventInfo, data: any, _runId: string, _tags?: string[], _metadata?: Record<string, any>): any;
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
|
-
export { GoogleCustomEventInfo, GoogleRequestCallbackHandler, GoogleRequestLogger, GoogleRequestRecorder };
|
|
33
32
|
//# sourceMappingURL=handler.d.ts.map
|
package/dist/utils/misc.d.cts
CHANGED
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
* type Input = { a: string } & { b: number };
|
|
8
8
|
* type Output = Prettify<Input>; // { a: string; b: number }
|
|
9
9
|
*/
|
|
10
|
-
type Prettify<T> = T extends object ? { [K in keyof T]: Prettify<T[K]>; } : T;
|
|
10
|
+
export type Prettify<T> = T extends object ? { [K in keyof T]: Prettify<T[K]>; } : T;
|
|
11
11
|
/**
|
|
12
12
|
* Distributes over a string union and applies Lowercase only to
|
|
13
13
|
* string-literal members, filtering out wide `string` / `string & {}`.
|
|
14
14
|
*/
|
|
15
|
-
type LowercaseLiteral<T> = T extends string ? string extends T ? never : Lowercase<T> : never;
|
|
15
|
+
export type LowercaseLiteral<T> = T extends string ? string extends T ? never : Lowercase<T> : never;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { LowercaseLiteral, Prettify };
|
|
18
17
|
//# sourceMappingURL=misc.d.cts.map
|
package/dist/utils/misc.d.ts
CHANGED
|
@@ -7,12 +7,11 @@
|
|
|
7
7
|
* type Input = { a: string } & { b: number };
|
|
8
8
|
* type Output = Prettify<Input>; // { a: string; b: number }
|
|
9
9
|
*/
|
|
10
|
-
type Prettify<T> = T extends object ? { [K in keyof T]: Prettify<T[K]>; } : T;
|
|
10
|
+
export type Prettify<T> = T extends object ? { [K in keyof T]: Prettify<T[K]>; } : T;
|
|
11
11
|
/**
|
|
12
12
|
* Distributes over a string union and applies Lowercase only to
|
|
13
13
|
* string-literal members, filtering out wide `string` / `string & {}`.
|
|
14
14
|
*/
|
|
15
|
-
type LowercaseLiteral<T> = T extends string ? string extends T ? never : Lowercase<T> : never;
|
|
15
|
+
export type LowercaseLiteral<T> = T extends string ? string extends T ? never : Lowercase<T> : never;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { LowercaseLiteral, Prettify };
|
|
18
17
|
//# sourceMappingURL=misc.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/google",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
4
4
|
"description": "Google integrations for LangChain.js",
|
|
5
5
|
"author": "LangChain",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
"directory": "libs/providers/langchain-google"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"eventsource-parser": "^4.1.
|
|
17
|
+
"eventsource-parser": "^4.1.1",
|
|
18
18
|
"google-auth-library": "^11.1.0",
|
|
19
|
-
"jose": "^6.2.
|
|
19
|
+
"jose": "^6.2.12"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@langchain/core": "^1.2.
|
|
22
|
+
"@langchain/core": "^1.2.18"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@tsconfig/recommended": "^1.0.10",
|
|
26
|
-
"@types/node": "^26.
|
|
26
|
+
"@types/node": "^26.6.3",
|
|
27
27
|
"dpdm": "^4.3.0",
|
|
28
28
|
"sparktype": "^0.1.3",
|
|
29
29
|
"typescript": "~7.0.2",
|
|
30
|
-
"vitest": "^
|
|
30
|
+
"vitest": "^5.0.2",
|
|
31
31
|
"zod": "^3.25.76 || ^4",
|
|
32
32
|
"zod-to-json-schema": "^3.25.2",
|
|
33
|
-
"@langchain/
|
|
34
|
-
"@langchain/
|
|
33
|
+
"@langchain/standard-tests": "0.0.23",
|
|
34
|
+
"@langchain/core": "^1.2.18"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|