"use client"; import Link from "next/link"; import { useI18n } from "@/i18n/i18n-context"; import type { MemorySearchHit } from "@/types/memory"; export interface MemoryEvidenceScope { appId: string; tenantId: string; agentId: string; runId: string; } interface MemoryEvidenceContentProps { hits: MemorySearchHit[]; memoryStoreName?: string; scope?: MemoryEvidenceScope; } function fileWorkspaceHref( memoryStoreName: string, scope: MemoryEvidenceScope, path: string, ): string { const query = new URLSearchParams({ ...scope, view: "files", file: path }); return `/memory/${encodeURIComponent(memoryStoreName)}/units?${query.toString()}`; } export function MemoryEvidenceContent({ hits, memoryStoreName, scope, }: MemoryEvidenceContentProps) { return (
{hit.unit.text}