(hit: SearchResult['content'][number], index: number)
| 159 | } |
| 160 | |
| 161 | function 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 | |
| 169 | async function performFirstPartyConfiguredWebSearch( |
| 170 | input: Input, |
no outgoing calls
no test coverage detected