import type * as HydraDB from "../index.js"; export interface SearchV2RetrievalResult { /** deprecated: use forceful_relations */ additionalContext?: Record; /** * AliasExpansions is the alias layer's honesty stamp (V0): which nickname * was expanded to which canonical name for this answer. */ aliasExpansions?: HydraDB.SearchAliasExpansionNote[]; /** App-search fusion diagnostics for unscoped requests: final returned chunk attribution and pre-postprocessing fusion counts. Omitted for ACL-scoped requests and when no attributed chunks remain. */ appSearchFusion?: HydraDB.SearchAppSearchFusionDiagnostics; /** Retrieved and ranked chunks from the knowledge store or memories. */ chunks?: HydraDB.SearchV2Chunk[]; codeSearch?: HydraDB.SearchCodeSearchResult; forcefulRelations?: HydraDB.SearchForcefulRelationsBucket; graph?: HydraDB.SearchGraphPlane; graphContext?: HydraDB.SearchGraphContext; /** * LLMPrompt is the whole response rendered as Markdown for a model call * (PRO-2067): numbered results with their content and citable ids, related * facts with evidence, temporal facts and sources. It is never * empty on /query — a zero-match query renders an explicit no-results * message naming any filter that constrained the search. Inject it * verbatim. */ llmPrompt?: string; /** * SourceFacts surface the matched app-native (edge_source) facts when * source_reasoning was active; omitted otherwise (PRO-1602). */ sourceFacts?: HydraDB.SearchSourceFact[]; sourceFilter?: HydraDB.SearchSourceFilterInfo; /** Deduplicated source-level metadata for all returned chunks. */ sources?: HydraDB.SearchSourceInfo[]; temporalDuration?: HydraDB.SearchTemporalDuration; /** * TemporalFacts surface the matched edge-level temporal facts when * temporal_reasoning was requested; omitted otherwise. */ temporalFacts?: HydraDB.SearchTemporalFact[]; temporalFilter?: HydraDB.SearchTemporalFilterInfo; }