@superatomai/sdk-node 0.0.2-mds → 0.0.3-mds

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/index.d.mts CHANGED
@@ -2336,6 +2336,7 @@ declare const openaiLLM: OpenAILLM;
2336
2336
  */
2337
2337
  declare class QueryCache {
2338
2338
  private cache;
2339
+ private queryIdCache;
2339
2340
  private ttlMs;
2340
2341
  private cleanupInterval;
2341
2342
  constructor();
@@ -2380,6 +2381,26 @@ declare class QueryCache {
2380
2381
  * Start periodic cleanup of expired entries
2381
2382
  */
2382
2383
  private startCleanup;
2384
+ /**
2385
+ * Generate a unique query ID
2386
+ */
2387
+ private generateQueryId;
2388
+ /**
2389
+ * Store a query by ID. Returns the generated queryId.
2390
+ * The query is stored server-side; only the queryId is sent to the frontend.
2391
+ */
2392
+ storeQuery(query: any, data?: any): string;
2393
+ /**
2394
+ * Get a stored query by its ID (not expired)
2395
+ */
2396
+ getQuery(queryId: string): {
2397
+ query: any;
2398
+ data: any;
2399
+ } | null;
2400
+ /**
2401
+ * Update cached data for a queryId
2402
+ */
2403
+ setQueryData(queryId: string, data: any): void;
2383
2404
  /**
2384
2405
  * Stop cleanup interval (for graceful shutdown)
2385
2406
  */
package/dist/index.d.ts CHANGED
@@ -2336,6 +2336,7 @@ declare const openaiLLM: OpenAILLM;
2336
2336
  */
2337
2337
  declare class QueryCache {
2338
2338
  private cache;
2339
+ private queryIdCache;
2339
2340
  private ttlMs;
2340
2341
  private cleanupInterval;
2341
2342
  constructor();
@@ -2380,6 +2381,26 @@ declare class QueryCache {
2380
2381
  * Start periodic cleanup of expired entries
2381
2382
  */
2382
2383
  private startCleanup;
2384
+ /**
2385
+ * Generate a unique query ID
2386
+ */
2387
+ private generateQueryId;
2388
+ /**
2389
+ * Store a query by ID. Returns the generated queryId.
2390
+ * The query is stored server-side; only the queryId is sent to the frontend.
2391
+ */
2392
+ storeQuery(query: any, data?: any): string;
2393
+ /**
2394
+ * Get a stored query by its ID (not expired)
2395
+ */
2396
+ getQuery(queryId: string): {
2397
+ query: any;
2398
+ data: any;
2399
+ } | null;
2400
+ /**
2401
+ * Update cached data for a queryId
2402
+ */
2403
+ setQueryData(queryId: string, data: any): void;
2383
2404
  /**
2384
2405
  * Stop cleanup interval (for graceful shutdown)
2385
2406
  */