MCPcopy Create free account
hub / github.com/Noumena-Network/code / formatSearchHitForModel

Function formatSearchHitForModel

src/tools/WebSearchTool/WebSearchTool.ts:161–167  ·  view source on GitHub ↗
(hit: SearchResult['content'][number], index: number)

Source from the content-addressed store, hash-verified

159}
160
161function formatSearchHitForModel(hit: SearchResult['content'][number], index: number): string {
162 let formatted = `${index + 1}. ${hit.title}\n URL: ${hit.url}`
163 if (hit.snippet) {
164 formatted += `\n Snippet: ${hit.snippet}`
165 }
166 return formatted
167}
168
169async function performFirstPartyConfiguredWebSearch(
170 input: Input,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected