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:
Soumil Rathi
2026-04-13 13:33:16 -07:00
parent 015aa2c866
commit 271de8eabf
@@ -7,7 +7,7 @@
* All helpers use only the SDK's public API — no internal method access.
*/
import { MemoryClient } from "../../mem0";
import type { Memory, SearchMemoryOptions } from "../../mem0.types";
import type { Memory } from "../../mem0.types";
import { NetworkError, RateLimitError } from "../../../common/exceptions";
// ─── Environment gate ────────────────────────────────────
@@ -88,7 +88,7 @@ export async function waitForMemories(
export async function waitForSearchResults(
client: MemoryClient,
query: string,
options: SearchMemoryOptions,
options: Record<string, any>,
maxRetries = 4,
): Promise<Memory[]> {
for (let attempt = 1; attempt <= maxRetries; attempt++) {