@langchain/langgraph-sdk 0.0.1-rc.11 → 0.0.1-rc.12

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { Assistant, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, RunEvent, Thread, ThreadState } from "./schema.js";
1
+ import { Assistant, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadState } from "./schema.js";
2
2
  import { AsyncCaller, AsyncCallerParams } from "./utils/async_caller.mjs";
3
3
  import { RunsCreatePayload, RunsStreamPayload, RunsWaitPayload, StreamEvent } from "./types.mjs";
4
4
  interface ClientConfig {
@@ -242,26 +242,6 @@ declare class RunsClient extends BaseClient {
242
242
  * @returns
243
243
  */
244
244
  join(threadId: string, runId: string): Promise<void>;
245
- /**
246
- * List all events for a run.
247
- *
248
- * @param threadId The ID of the thread.
249
- * @param runId The ID of the run.
250
- * @param options Filtering and pagination options.
251
- * @returns List of events.
252
- */
253
- listEvents(threadId: string, runId: string, options?: {
254
- /**
255
- * Maximum number of events to return.
256
- * Defaults to 10
257
- */
258
- limit?: number;
259
- /**
260
- * Offset to start from.
261
- * Defaults to 0.
262
- */
263
- offset?: number;
264
- }): Promise<RunEvent[]>;
265
245
  /**
266
246
  * Delete a run.
267
247
  *
package/dist/client.mjs CHANGED
@@ -65,7 +65,7 @@ class BaseClient {
65
65
  }
66
66
  async fetch(path, options) {
67
67
  const response = await this.asyncCaller.fetch(...this.prepareFetchOptions(path, options));
68
- if (response.status == 202) {
68
+ if (response.status === 202 || response.status === 204) {
69
69
  return undefined;
70
70
  }
71
71
  return response.json();
@@ -439,22 +439,6 @@ class RunsClient extends BaseClient {
439
439
  async join(threadId, runId) {
440
440
  return this.fetch(`/threads/${threadId}/runs/${runId}/join`);
441
441
  }
442
- /**
443
- * List all events for a run.
444
- *
445
- * @param threadId The ID of the thread.
446
- * @param runId The ID of the run.
447
- * @param options Filtering and pagination options.
448
- * @returns List of events.
449
- */
450
- async listEvents(threadId, runId, options) {
451
- return this.fetch(`/threads/${threadId}/runs/${runId}/events`, {
452
- params: {
453
- limit: options?.limit ?? 10,
454
- offset: options?.offset ?? 0,
455
- },
456
- });
457
- }
458
442
  /**
459
443
  * Delete a run.
460
444
  *
package/dist/index.d.mts CHANGED
@@ -1,2 +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";
2
+ export type { Assistant, AssistantGraph, Config, DefaultValues, GraphSchema, Metadata, Run, Thread, ThreadState, } from "./schema.js";
package/dist/schema.d.ts CHANGED
@@ -74,15 +74,4 @@ export interface Run {
74
74
  status: "pending" | "running" | "error" | "success" | "timeout" | "interrupted";
75
75
  metadata: Metadata;
76
76
  }
77
- export interface RunEvent {
78
- event_id: string;
79
- run_id: string;
80
- received_at: string;
81
- span_id: string;
82
- event: string;
83
- name: string;
84
- data: Record<string, unknown>;
85
- metadata: Record<string, unknown>;
86
- tags: string[];
87
- }
88
77
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/langgraph-sdk",
3
- "version": "0.0.1-rc.11",
3
+ "version": "0.0.1-rc.12",
4
4
  "description": "Client library for interacting with the LangGraph API",
5
5
  "type": "module",
6
6
  "packageManager": "yarn@1.22.19",