@langgraph-js/sdk 3.2.1 → 3.3.0
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/LangGraphClient.js
CHANGED
|
@@ -245,7 +245,7 @@ export class LangGraphClient extends EventEmitter {
|
|
|
245
245
|
messages: messagesToSend,
|
|
246
246
|
fe_tools: await this.tools.toJSON(this.currentAssistant.graph_id),
|
|
247
247
|
},
|
|
248
|
-
streamMode: ["messages", "values"],
|
|
248
|
+
streamMode: ["messages", "values", "updates"],
|
|
249
249
|
streamSubgraphs: true,
|
|
250
250
|
command,
|
|
251
251
|
});
|
|
@@ -46,6 +46,98 @@ export declare const createJSONDefineTool: <Args extends ZodRawShape>(tool: Unio
|
|
|
46
46
|
name: string;
|
|
47
47
|
description: string;
|
|
48
48
|
parameters: Args | ({
|
|
49
|
+
anyOf: import("zod-to-json-schema").JsonSchema7DateType[];
|
|
50
|
+
} & {
|
|
51
|
+
title?: string;
|
|
52
|
+
default?: any;
|
|
53
|
+
description?: string;
|
|
54
|
+
markdownDescription?: string;
|
|
55
|
+
} & {
|
|
56
|
+
$schema?: string | undefined;
|
|
57
|
+
definitions?: {
|
|
58
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
59
|
+
} | undefined;
|
|
60
|
+
}) | ({
|
|
61
|
+
type: "object" | "array";
|
|
62
|
+
} & {
|
|
63
|
+
title?: string;
|
|
64
|
+
default?: any;
|
|
65
|
+
description?: string;
|
|
66
|
+
markdownDescription?: string;
|
|
67
|
+
} & {
|
|
68
|
+
$schema?: string | undefined;
|
|
69
|
+
definitions?: {
|
|
70
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
71
|
+
} | undefined;
|
|
72
|
+
}) | ({
|
|
73
|
+
type: ("string" | "number" | "boolean" | "integer" | "null") | ("string" | "number" | "boolean" | "integer" | "null")[];
|
|
74
|
+
} & {
|
|
75
|
+
title?: string;
|
|
76
|
+
default?: any;
|
|
77
|
+
description?: string;
|
|
78
|
+
markdownDescription?: string;
|
|
79
|
+
} & {
|
|
80
|
+
$schema?: string | undefined;
|
|
81
|
+
definitions?: {
|
|
82
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
83
|
+
} | undefined;
|
|
84
|
+
}) | ({
|
|
85
|
+
anyOf: import("zod-to-json-schema").JsonSchema7Type[];
|
|
86
|
+
} & {
|
|
87
|
+
title?: string;
|
|
88
|
+
default?: any;
|
|
89
|
+
description?: string;
|
|
90
|
+
markdownDescription?: string;
|
|
91
|
+
} & {
|
|
92
|
+
$schema?: string | undefined;
|
|
93
|
+
definitions?: {
|
|
94
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
95
|
+
} | undefined;
|
|
96
|
+
}) | (import("zod-to-json-schema").JsonSchema7UndefinedType & {
|
|
97
|
+
title?: string;
|
|
98
|
+
default?: any;
|
|
99
|
+
description?: string;
|
|
100
|
+
markdownDescription?: string;
|
|
101
|
+
} & {
|
|
102
|
+
$schema?: string | undefined;
|
|
103
|
+
definitions?: {
|
|
104
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
105
|
+
} | undefined;
|
|
106
|
+
}) | (import("zod-to-json-schema").JsonSchema7AnyType & {
|
|
107
|
+
title?: string;
|
|
108
|
+
default?: any;
|
|
109
|
+
description?: string;
|
|
110
|
+
markdownDescription?: string;
|
|
111
|
+
} & {
|
|
112
|
+
$schema?: string | undefined;
|
|
113
|
+
definitions?: {
|
|
114
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
115
|
+
} | undefined;
|
|
116
|
+
}) | ({
|
|
117
|
+
anyOf: [import("zod-to-json-schema").JsonSchema7Type, import("zod-to-json-schema").JsonSchema7NullType];
|
|
118
|
+
} & {
|
|
119
|
+
title?: string;
|
|
120
|
+
default?: any;
|
|
121
|
+
description?: string;
|
|
122
|
+
markdownDescription?: string;
|
|
123
|
+
} & {
|
|
124
|
+
$schema?: string | undefined;
|
|
125
|
+
definitions?: {
|
|
126
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
127
|
+
} | undefined;
|
|
128
|
+
}) | ({
|
|
129
|
+
type: [string, "null"];
|
|
130
|
+
} & {
|
|
131
|
+
title?: string;
|
|
132
|
+
default?: any;
|
|
133
|
+
description?: string;
|
|
134
|
+
markdownDescription?: string;
|
|
135
|
+
} & {
|
|
136
|
+
$schema?: string | undefined;
|
|
137
|
+
definitions?: {
|
|
138
|
+
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
|
|
139
|
+
} | undefined;
|
|
140
|
+
}) | (import("zod-to-json-schema").JsonSchema7AllOfType & {
|
|
49
141
|
title?: string;
|
|
50
142
|
default?: any;
|
|
51
143
|
description?: string;
|
package/package.json
CHANGED
package/src/LangGraphClient.ts
CHANGED
|
@@ -346,7 +346,7 @@ export class LangGraphClient<TStateType = unknown> extends EventEmitter<LangGrap
|
|
|
346
346
|
messages: messagesToSend,
|
|
347
347
|
fe_tools: await this.tools.toJSON(this.currentAssistant!.graph_id),
|
|
348
348
|
},
|
|
349
|
-
streamMode: ["messages", "values"],
|
|
349
|
+
streamMode: ["messages", "values", "updates"],
|
|
350
350
|
streamSubgraphs: true,
|
|
351
351
|
command,
|
|
352
352
|
});
|