@langchain/langgraph-sdk 0.0.1-rc.5 → 0.0.1-rc.7
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/client.d.mts +2 -2
- package/dist/client.mjs +5 -4
- package/package.json +5 -2
package/dist/client.d.mts
CHANGED
|
@@ -56,7 +56,7 @@ declare class AssistantsClient extends BaseClient {
|
|
|
56
56
|
* @param payload Payload for updating the assistant.
|
|
57
57
|
* @returns The updated assistant.
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
update(assistantId: string, payload: {
|
|
60
60
|
graphId: string;
|
|
61
61
|
config?: Config;
|
|
62
62
|
metadata?: Metadata;
|
|
@@ -99,7 +99,7 @@ declare class ThreadsClient extends BaseClient {
|
|
|
99
99
|
* @param payload Payload for updating the thread.
|
|
100
100
|
* @returns The updated thread.
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
update(threadId: string, payload?: {
|
|
103
103
|
/**
|
|
104
104
|
* Metadata for the thread.
|
|
105
105
|
*/
|
package/dist/client.mjs
CHANGED
|
@@ -105,9 +105,9 @@ class AssistantsClient extends BaseClient {
|
|
|
105
105
|
* @param payload Payload for updating the assistant.
|
|
106
106
|
* @returns The updated assistant.
|
|
107
107
|
*/
|
|
108
|
-
async
|
|
108
|
+
async update(assistantId, payload) {
|
|
109
109
|
return this.fetch(`/assistants/${assistantId}`, {
|
|
110
|
-
method: "
|
|
110
|
+
method: "PATCH",
|
|
111
111
|
json: {
|
|
112
112
|
graph_id: payload.graphId,
|
|
113
113
|
config: payload.config,
|
|
@@ -160,9 +160,9 @@ class ThreadsClient extends BaseClient {
|
|
|
160
160
|
* @param payload Payload for updating the thread.
|
|
161
161
|
* @returns The updated thread.
|
|
162
162
|
*/
|
|
163
|
-
async
|
|
163
|
+
async update(threadId, payload) {
|
|
164
164
|
return this.fetch(`/threads/${threadId}`, {
|
|
165
|
-
method: "
|
|
165
|
+
method: "PATCH",
|
|
166
166
|
json: { metadata: payload?.metadata },
|
|
167
167
|
});
|
|
168
168
|
}
|
|
@@ -282,6 +282,7 @@ class RunsClient extends BaseClient {
|
|
|
282
282
|
config: payload?.config,
|
|
283
283
|
metadata: payload?.metadata,
|
|
284
284
|
stream_mode: payload?.streamMode,
|
|
285
|
+
feedback_keys: payload?.feedbackKeys,
|
|
285
286
|
assistant_id: assistantId,
|
|
286
287
|
interrupt_before: payload?.interruptBefore,
|
|
287
288
|
interrupt_after: payload?.interruptAfter,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/langgraph-sdk",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.7",
|
|
4
4
|
"description": "Client library for interacting with the LangGraph API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@1.22.19",
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
"build": "yarn clean && yarn build:esm && yarn build:cjs && node scripts/create-entrypoints.js",
|
|
10
10
|
"build:esm": "rm -f src/package.json && tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
|
|
11
11
|
"build:cjs": "echo '{}' > src/package.json && tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rm -r dist-cjs src/package.json",
|
|
12
|
-
"prepublish": "yarn run build"
|
|
12
|
+
"prepublish": "yarn run build",
|
|
13
|
+
"format": "prettier --write src",
|
|
14
|
+
"lint": "prettier --check src && tsc --noEmit"
|
|
13
15
|
},
|
|
14
16
|
"main": "index.js",
|
|
15
17
|
"license": "MIT",
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"@tsconfig/recommended": "^1.0.2",
|
|
24
26
|
"@types/node": "^20.12.12",
|
|
25
27
|
"@types/uuid": "^9.0.1",
|
|
28
|
+
"prettier": "^3.2.5",
|
|
26
29
|
"typescript": "^5.4.5"
|
|
27
30
|
},
|
|
28
31
|
"exports": {
|