(data: unknown, sourceUrls?: string[])
| 4 | } |
| 5 | |
| 6 | export function formatToolResult(data: unknown, sourceUrls?: string[]): string { |
| 7 | const result: ToolResult = { data }; |
| 8 | if (sourceUrls?.length) { |
| 9 | result.sourceUrls = sourceUrls; |
| 10 | } |
| 11 | return JSON.stringify(result); |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Parse search results from a search provider response. |
no outgoing calls
no test coverage detected