@langchain/langgraph-sdk 0.0.30 → 0.0.32
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 +2 -0
- package/dist/client.js +2 -0
- package/dist/schema.d.ts +6 -3
- package/dist/types.d.ts +4 -2
- package/package.json +1 -1
package/dist/client.cjs
CHANGED
|
@@ -847,6 +847,7 @@ class StoreClient extends BaseClient {
|
|
|
847
847
|
* @param options.filter Optional dictionary of key-value pairs to filter results.
|
|
848
848
|
* @param options.limit Maximum number of items to return (default is 10).
|
|
849
849
|
* @param options.offset Number of items to skip before returning results (default is 0).
|
|
850
|
+
* @param options.query Optional search query.
|
|
850
851
|
* @returns Promise<SearchItemsResponse>
|
|
851
852
|
*/
|
|
852
853
|
async searchItems(namespacePrefix, options) {
|
|
@@ -855,6 +856,7 @@ class StoreClient extends BaseClient {
|
|
|
855
856
|
filter: options?.filter,
|
|
856
857
|
limit: options?.limit ?? 10,
|
|
857
858
|
offset: options?.offset ?? 0,
|
|
859
|
+
query: options?.query,
|
|
858
860
|
};
|
|
859
861
|
const response = await this.fetch("/store/items/search", {
|
|
860
862
|
method: "POST",
|
package/dist/client.d.ts
CHANGED
|
@@ -420,12 +420,14 @@ export declare class StoreClient extends BaseClient {
|
|
|
420
420
|
* @param options.filter Optional dictionary of key-value pairs to filter results.
|
|
421
421
|
* @param options.limit Maximum number of items to return (default is 10).
|
|
422
422
|
* @param options.offset Number of items to skip before returning results (default is 0).
|
|
423
|
+
* @param options.query Optional search query.
|
|
423
424
|
* @returns Promise<SearchItemsResponse>
|
|
424
425
|
*/
|
|
425
426
|
searchItems(namespacePrefix: string[], options?: {
|
|
426
427
|
filter?: Record<string, any>;
|
|
427
428
|
limit?: number;
|
|
428
429
|
offset?: number;
|
|
430
|
+
query?: string;
|
|
429
431
|
}): Promise<SearchItemsResponse>;
|
|
430
432
|
/**
|
|
431
433
|
* List namespaces with optional match conditions.
|
package/dist/client.js
CHANGED
|
@@ -839,6 +839,7 @@ export class StoreClient extends BaseClient {
|
|
|
839
839
|
* @param options.filter Optional dictionary of key-value pairs to filter results.
|
|
840
840
|
* @param options.limit Maximum number of items to return (default is 10).
|
|
841
841
|
* @param options.offset Number of items to skip before returning results (default is 0).
|
|
842
|
+
* @param options.query Optional search query.
|
|
842
843
|
* @returns Promise<SearchItemsResponse>
|
|
843
844
|
*/
|
|
844
845
|
async searchItems(namespacePrefix, options) {
|
|
@@ -847,6 +848,7 @@ export class StoreClient extends BaseClient {
|
|
|
847
848
|
filter: options?.filter,
|
|
848
849
|
limit: options?.limit ?? 10,
|
|
849
850
|
offset: options?.offset ?? 0,
|
|
851
|
+
query: options?.query,
|
|
850
852
|
};
|
|
851
853
|
const response = await this.fetch("/store/items/search", {
|
|
852
854
|
method: "POST",
|
package/dist/schema.d.ts
CHANGED
|
@@ -194,9 +194,6 @@ export interface Checkpoint {
|
|
|
194
194
|
export interface ListNamespaceResponse {
|
|
195
195
|
namespaces: string[][];
|
|
196
196
|
}
|
|
197
|
-
export interface SearchItemsResponse {
|
|
198
|
-
items: Item[];
|
|
199
|
-
}
|
|
200
197
|
export interface Item {
|
|
201
198
|
namespace: string[];
|
|
202
199
|
key: string;
|
|
@@ -204,4 +201,10 @@ export interface Item {
|
|
|
204
201
|
createdAt: string;
|
|
205
202
|
updatedAt: string;
|
|
206
203
|
}
|
|
204
|
+
export interface SearchItem extends Item {
|
|
205
|
+
score?: number;
|
|
206
|
+
}
|
|
207
|
+
export interface SearchItemsResponse {
|
|
208
|
+
items: SearchItem[];
|
|
209
|
+
}
|
|
207
210
|
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -19,9 +19,11 @@ export interface Command {
|
|
|
19
19
|
*/
|
|
20
20
|
resume?: unknown;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Determine the next node to navigate to. Can be one of the following:
|
|
23
|
+
* - Name(s) of the node names to navigate to next.
|
|
24
|
+
* - `Send` command(s) to execute node(s) with provided input.
|
|
23
25
|
*/
|
|
24
|
-
|
|
26
|
+
goto?: Send | Send[] | string | string[];
|
|
25
27
|
}
|
|
26
28
|
interface RunsInvokePayload {
|
|
27
29
|
/**
|