@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 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
@@ -1 +1,2 @@
1
1
  export { Client } from "./client.mjs";
2
+ export type { Assistant, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, RunEvent, Thread, ThreadState, } from "./schema.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.1-rc.2",
3
+ "version": "0.0.1-rc.3",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",