@langchain/langgraph 0.0.34-rc.0 → 0.0.34
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/constants.cjs +2 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.js +2 -1
- package/package.json +1 -1
package/dist/constants.cjs
CHANGED
|
@@ -26,7 +26,7 @@ exports._isSendInterface = _isSendInterface;
|
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```typescript
|
|
29
|
-
* import { Annotation, StateGraph } from "@langchain/langgraph";
|
|
29
|
+
* import { Annotation, Send, StateGraph } from "@langchain/langgraph";
|
|
30
30
|
*
|
|
31
31
|
* const ChainState = Annotation.Root({
|
|
32
32
|
* subjects: Annotation<string[]>,
|
|
@@ -50,6 +50,7 @@ exports._isSendInterface = _isSendInterface;
|
|
|
50
50
|
* .compile();
|
|
51
51
|
*
|
|
52
52
|
* const res = await graph.invoke({ subjects: ["cats", "dogs"] });
|
|
53
|
+
* console.log(res);
|
|
53
54
|
*
|
|
54
55
|
* // Invoking with two subjects results in a generated joke for each
|
|
55
56
|
* // { subjects: ["cats", "dogs"], jokes: [`Joke about cats`, `Joke about dogs`] }
|
package/dist/constants.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare function _isSendInterface(x: unknown): x is SendInterface;
|
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```typescript
|
|
26
|
-
* import { Annotation, StateGraph } from "@langchain/langgraph";
|
|
26
|
+
* import { Annotation, Send, StateGraph } from "@langchain/langgraph";
|
|
27
27
|
*
|
|
28
28
|
* const ChainState = Annotation.Root({
|
|
29
29
|
* subjects: Annotation<string[]>,
|
|
@@ -47,6 +47,7 @@ export declare function _isSendInterface(x: unknown): x is SendInterface;
|
|
|
47
47
|
* .compile();
|
|
48
48
|
*
|
|
49
49
|
* const res = await graph.invoke({ subjects: ["cats", "dogs"] });
|
|
50
|
+
* console.log(res);
|
|
50
51
|
*
|
|
51
52
|
* // Invoking with two subjects results in a generated joke for each
|
|
52
53
|
* // { subjects: ["cats", "dogs"], jokes: [`Joke about cats`, `Joke about dogs`] }
|
package/dist/constants.js
CHANGED
|
@@ -22,7 +22,7 @@ export function _isSendInterface(x) {
|
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```typescript
|
|
25
|
-
* import { Annotation, StateGraph } from "@langchain/langgraph";
|
|
25
|
+
* import { Annotation, Send, StateGraph } from "@langchain/langgraph";
|
|
26
26
|
*
|
|
27
27
|
* const ChainState = Annotation.Root({
|
|
28
28
|
* subjects: Annotation<string[]>,
|
|
@@ -46,6 +46,7 @@ export function _isSendInterface(x) {
|
|
|
46
46
|
* .compile();
|
|
47
47
|
*
|
|
48
48
|
* const res = await graph.invoke({ subjects: ["cats", "dogs"] });
|
|
49
|
+
* console.log(res);
|
|
49
50
|
*
|
|
50
51
|
* // Invoking with two subjects results in a generated joke for each
|
|
51
52
|
* // { subjects: ["cats", "dogs"], jokes: [`Joke about cats`, `Joke about dogs`] }
|