@langchain/langgraph-sdk 0.0.72 → 0.0.73
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.cjs +2 -0
- package/dist/client.d.ts +5 -3
- package/dist/client.js +2 -0
- package/dist/schema.d.ts +3 -0
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -313,6 +313,8 @@ class AssistantsClient extends BaseClient {
|
|
|
313
313
|
metadata: query?.metadata ?? undefined,
|
|
314
314
|
limit: query?.limit ?? 10,
|
|
315
315
|
offset: query?.offset ?? 0,
|
|
316
|
+
sort_by: query?.sortBy ?? undefined,
|
|
317
|
+
sort_order: query?.sortOrder ?? undefined,
|
|
316
318
|
},
|
|
317
319
|
});
|
|
318
320
|
}
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Assistant, AssistantGraph, AssistantVersion, CancelAction, Checkpoint, Config, Cron, CronCreateForThreadResponse, CronCreateResponse, DefaultValues, GraphSchema, Item, ListNamespaceResponse, Metadata, Run, RunStatus, SearchItemsResponse, Subgraphs, Thread, ThreadState, ThreadStatus } from "./schema.js";
|
|
1
|
+
import { Assistant, AssistantGraph, AssistantSortBy, AssistantVersion, CancelAction, Checkpoint, Config, Cron, CronCreateForThreadResponse, CronCreateResponse, DefaultValues, GraphSchema, Item, ListNamespaceResponse, Metadata, Run, RunStatus, SearchItemsResponse, SortOrder, Subgraphs, Thread, ThreadSortBy, ThreadState, ThreadStatus } from "./schema.js";
|
|
2
2
|
import type { Command, CronsCreatePayload, OnConflictBehavior, RunsCreatePayload, RunsStreamPayload, RunsWaitPayload, StreamEvent } from "./types.js";
|
|
3
3
|
import type { StreamMode, TypedAsyncGenerator } from "./types.stream.js";
|
|
4
4
|
import { AsyncCaller, AsyncCallerParams } from "./utils/async_caller.js";
|
|
@@ -149,6 +149,8 @@ export declare class AssistantsClient extends BaseClient {
|
|
|
149
149
|
metadata?: Metadata;
|
|
150
150
|
limit?: number;
|
|
151
151
|
offset?: number;
|
|
152
|
+
sortBy?: AssistantSortBy;
|
|
153
|
+
sortOrder?: SortOrder;
|
|
152
154
|
}): Promise<Assistant[]>;
|
|
153
155
|
/**
|
|
154
156
|
* List all versions of an assistant.
|
|
@@ -271,12 +273,12 @@ export declare class ThreadsClient<TStateType = DefaultValues, TUpdateType = TSt
|
|
|
271
273
|
/**
|
|
272
274
|
* Sort by.
|
|
273
275
|
*/
|
|
274
|
-
sortBy?:
|
|
276
|
+
sortBy?: ThreadSortBy;
|
|
275
277
|
/**
|
|
276
278
|
* Sort order.
|
|
277
279
|
* Must be one of 'asc' or 'desc'.
|
|
278
280
|
*/
|
|
279
|
-
sortOrder?:
|
|
281
|
+
sortOrder?: SortOrder;
|
|
280
282
|
}): Promise<Thread<ValuesType>[]>;
|
|
281
283
|
/**
|
|
282
284
|
* Get state for a thread.
|
package/dist/client.js
CHANGED
|
@@ -308,6 +308,8 @@ export class AssistantsClient extends BaseClient {
|
|
|
308
308
|
metadata: query?.metadata ?? undefined,
|
|
309
309
|
limit: query?.limit ?? 10,
|
|
310
310
|
offset: query?.offset ?? 0,
|
|
311
|
+
sort_by: query?.sortBy ?? undefined,
|
|
312
|
+
sort_order: query?.sortOrder ?? undefined,
|
|
311
313
|
},
|
|
312
314
|
});
|
|
313
315
|
}
|
package/dist/schema.d.ts
CHANGED
|
@@ -225,4 +225,7 @@ export interface CronCreateResponse {
|
|
|
225
225
|
export interface CronCreateForThreadResponse extends Omit<CronCreateResponse, "thread_id"> {
|
|
226
226
|
thread_id: string;
|
|
227
227
|
}
|
|
228
|
+
export type AssistantSortBy = "assistant_id" | "graph_id" | "name" | "created_at" | "updated_at";
|
|
229
|
+
export type ThreadSortBy = "thread_id" | "status" | "created_at" | "updated_at";
|
|
230
|
+
export type SortOrder = "asc" | "desc";
|
|
228
231
|
export {};
|