@langchain/langgraph 0.2.33 → 0.2.35
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/pregel/messages.cjs
CHANGED
|
@@ -12,6 +12,8 @@ function isChatGenerationChunk(x) {
|
|
|
12
12
|
* A callback handler that implements stream_mode=messages.
|
|
13
13
|
* Collects messages from (1) chat model stream events and (2) node outputs.
|
|
14
14
|
*/
|
|
15
|
+
// TODO: Make this import and explicitly implement the
|
|
16
|
+
// CallbackHandlerPrefersStreaming interface once we drop support for core 0.2
|
|
15
17
|
class StreamMessagesHandler extends base_1.BaseCallbackHandler {
|
|
16
18
|
constructor(streamFn) {
|
|
17
19
|
super();
|
|
@@ -45,6 +47,12 @@ class StreamMessagesHandler extends base_1.BaseCallbackHandler {
|
|
|
45
47
|
writable: true,
|
|
46
48
|
value: {}
|
|
47
49
|
});
|
|
50
|
+
Object.defineProperty(this, "lc_prefer_streaming", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
configurable: true,
|
|
53
|
+
writable: true,
|
|
54
|
+
value: true
|
|
55
|
+
});
|
|
48
56
|
this.streamFn = streamFn;
|
|
49
57
|
}
|
|
50
58
|
_emit(meta, message, dedupe = false) {
|
|
@@ -15,6 +15,7 @@ export declare class StreamMessagesHandler extends BaseCallbackHandler {
|
|
|
15
15
|
metadatas: Record<string, Meta>;
|
|
16
16
|
seen: Record<string, BaseMessage>;
|
|
17
17
|
emittedChatModelRunIds: Record<string, boolean>;
|
|
18
|
+
lc_prefer_streaming: boolean;
|
|
18
19
|
constructor(streamFn: (streamChunk: StreamChunk) => void);
|
|
19
20
|
_emit(meta: Meta, message: BaseMessage, dedupe?: boolean): void;
|
|
20
21
|
handleChatModelStart(_llm: Serialized, _messages: BaseMessage[][], runId: string, _parentRunId?: string, _extraParams?: Record<string, unknown>, tags?: string[], metadata?: Record<string, unknown>, name?: string): void;
|
package/dist/pregel/messages.js
CHANGED
|
@@ -9,6 +9,8 @@ function isChatGenerationChunk(x) {
|
|
|
9
9
|
* A callback handler that implements stream_mode=messages.
|
|
10
10
|
* Collects messages from (1) chat model stream events and (2) node outputs.
|
|
11
11
|
*/
|
|
12
|
+
// TODO: Make this import and explicitly implement the
|
|
13
|
+
// CallbackHandlerPrefersStreaming interface once we drop support for core 0.2
|
|
12
14
|
export class StreamMessagesHandler extends BaseCallbackHandler {
|
|
13
15
|
constructor(streamFn) {
|
|
14
16
|
super();
|
|
@@ -42,6 +44,12 @@ export class StreamMessagesHandler extends BaseCallbackHandler {
|
|
|
42
44
|
writable: true,
|
|
43
45
|
value: {}
|
|
44
46
|
});
|
|
47
|
+
Object.defineProperty(this, "lc_prefer_streaming", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true,
|
|
50
|
+
writable: true,
|
|
51
|
+
value: true
|
|
52
|
+
});
|
|
45
53
|
this.streamFn = streamFn;
|
|
46
54
|
}
|
|
47
55
|
_emit(meta, message, dedupe = false) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.35",
|
|
4
4
|
"description": "LangGraph",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@jest/globals": "^29.5.0",
|
|
44
44
|
"@langchain/anthropic": "^0.3.5",
|
|
45
45
|
"@langchain/community": "^0.3.9",
|
|
46
|
-
"@langchain/core": "^0.3.
|
|
46
|
+
"@langchain/core": "^0.3.24",
|
|
47
47
|
"@langchain/langgraph-checkpoint-postgres": "workspace:*",
|
|
48
48
|
"@langchain/langgraph-checkpoint-sqlite": "workspace:*",
|
|
49
49
|
"@langchain/openai": "^0.3.11",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"pg": "^8.13.0",
|
|
73
73
|
"prettier": "^2.8.3",
|
|
74
74
|
"release-it": "^17.6.0",
|
|
75
|
-
"rollup": "^4.
|
|
75
|
+
"rollup": "^4.24.1",
|
|
76
76
|
"ts-jest": "^29.1.0",
|
|
77
77
|
"tsx": "^4.7.0",
|
|
78
78
|
"typescript": "^4.9.5 || ^5.4.5",
|