mirror of
https://github.com/langchain-ai/langgraphjs-api.git
synced 2026-07-19 13:25:54 -04:00
Merge pull request #11 from langchain-ai/dqbd/get-graph-async
fix(api): use getGraphAsync instead of getGraph
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@langchain/langgraph-api",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"type": "module",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
@@ -110,9 +110,11 @@ api.get(
|
||||
const { xray } = c.req.valid("query");
|
||||
|
||||
const graph = getGraph(assistant.graph_id);
|
||||
return c.json(
|
||||
graph.getGraph({ ...getRunnableConfig(assistant.config), xray }).toJSON(),
|
||||
);
|
||||
const drawable = await graph.getGraphAsync({
|
||||
...getRunnableConfig(assistant.config),
|
||||
xray: xray ?? undefined,
|
||||
});
|
||||
return c.json(drawable.toJSON());
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@langchain/langgraph-cli",
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"type": "module",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
||||
Reference in New Issue
Block a user