@langchain/langgraph-sdk 0.0.1-rc.2 → 0.0.1-rc.3
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.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -150,7 +150,7 @@ class ThreadsClient extends BaseClient {
|
|
|
150
150
|
async create(payload) {
|
|
151
151
|
return this.fetch(`/threads`, {
|
|
152
152
|
method: "POST",
|
|
153
|
-
json: { metadata: payload },
|
|
153
|
+
json: { metadata: payload?.metadata },
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
@@ -163,7 +163,7 @@ class ThreadsClient extends BaseClient {
|
|
|
163
163
|
async upsert(threadId, payload) {
|
|
164
164
|
return this.fetch(`/threads/${threadId}`, {
|
|
165
165
|
method: "PUT",
|
|
166
|
-
json: { metadata: payload },
|
|
166
|
+
json: { metadata: payload?.metadata },
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
/**
|
package/dist/index.d.mts
CHANGED