Skip to content

Commit 9b44b14

Browse files
authored
update langgraph SDK (#316)
1 parent 7723428 commit 9b44b14

File tree

5 files changed

+258
-262
lines changed

5 files changed

+258
-262
lines changed

frontend/app/hooks/useThreadList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function useThreadList(userId: string): ThreadListProps {
8383
}, []);
8484

8585
const updateThread = useCallback(async (thread_id: string, name: string) => {
86-
const saved = await client.threads.upsert(thread_id, {
86+
const saved = await client.threads.update(thread_id, {
8787
metadata: { name, userId },
8888
});
8989
dispatch({ type: "add", threads: [saved] });

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@emotion/react": "^11.11.1",
1717
"@emotion/styled": "^11.11.0",
1818
"@langchain/core": "^0.1.27",
19-
"@langchain/langgraph-sdk": "^0.0.1-rc.6",
19+
"@langchain/langgraph-sdk": "^0.0.1-rc.7",
2020
"@types/dompurify": "^3.0.5",
2121
"@types/lodash.orderby": "^4.6.9",
2222
"@types/marked": "^5.0.1",

frontend/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,10 +1108,10 @@
11081108
zod "^3.22.4"
11091109
zod-to-json-schema "^3.22.3"
11101110

1111-
"@langchain/langgraph-sdk@^0.0.1-rc.6":
1112-
version "0.0.1-rc.6"
1113-
resolved "https://registry.yarnpkg.com/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.1-rc.6.tgz#c8e5db0fa8fe2f77a860d586f3e7a7d8a3a7dd6a"
1114-
integrity sha512-sBdqoWFGvnQ7Cm4kgUAIiw02Wa6Fua4prBuzAh50QK7ibtJCsk2d/Tkolup1KXjy+PYTTpmBnBHm8wu+6AcmvQ==
1111+
"@langchain/langgraph-sdk@^0.0.1-rc.7":
1112+
version "0.0.1-rc.7"
1113+
resolved "https://registry.yarnpkg.com/@langchain/langgraph-sdk/-/langgraph-sdk-0.0.1-rc.7.tgz#d1f5f23937a86219e298b8fa33b80b3d998a4177"
1114+
integrity sha512-d6wzMxvB0R40gs340aVS0a+o9DvcsQqtBoS4s6LGfZxlHB7CbLiflPEaM/3fKeEziLTxmYl2BWOfHsjwiMwOgQ==
11151115
dependencies:
11161116
eventsource-parser "^1.1.2"
11171117
p-queue "^6.6.2"

0 commit comments

Comments
 (0)