MCPcopy Index your code
hub / github.com/simstudioai/sim / getSearchResults

Function getSearchResults

apps/sim/tools/mem0/search_memories.ts:7–10  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

5import type { ToolConfig } from '@/tools/types'
6
7const getSearchResults = (data: unknown): JsonRecord[] => {
8 if (!isRecordLike(data) || !Array.isArray(data.results)) return []
9 return data.results.filter(isRecordLike)
10}
11
12const getString = (value: unknown): string | undefined =>
13 typeof value === 'string' ? value : undefined

Callers 1

search_memories.tsFile · 0.85

Calls 1

isRecordLikeFunction · 0.90

Tested by

no test coverage detected