revert: keep waitForSearchResults options as Record<string, any>
Matches main. The type tightening was an unsolicited change. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
* All helpers use only the SDK's public API — no internal method access.
|
* All helpers use only the SDK's public API — no internal method access.
|
||||||
*/
|
*/
|
||||||
import { MemoryClient } from "../../mem0";
|
import { MemoryClient } from "../../mem0";
|
||||||
import type { Memory, SearchMemoryOptions } from "../../mem0.types";
|
import type { Memory } from "../../mem0.types";
|
||||||
import { NetworkError, RateLimitError } from "../../../common/exceptions";
|
import { NetworkError, RateLimitError } from "../../../common/exceptions";
|
||||||
|
|
||||||
// ─── Environment gate ────────────────────────────────────
|
// ─── Environment gate ────────────────────────────────────
|
||||||
@@ -88,7 +88,7 @@ export async function waitForMemories(
|
|||||||
export async function waitForSearchResults(
|
export async function waitForSearchResults(
|
||||||
client: MemoryClient,
|
client: MemoryClient,
|
||||||
query: string,
|
query: string,
|
||||||
options: SearchMemoryOptions,
|
options: Record<string, any>,
|
||||||
maxRetries = 4,
|
maxRetries = 4,
|
||||||
): Promise<Memory[]> {
|
): Promise<Memory[]> {
|
||||||
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user