(input: Input)
| 74 | import type { WebSearchProgress } from '../../types/tools.js' |
| 75 | |
| 76 | function makeToolSchema(input: Input): BetaWebSearchTool20250305 { |
| 77 | return { |
| 78 | type: 'web_search_20250305', |
| 79 | name: 'web_search', |
| 80 | allowed_domains: input.allowed_domains, |
| 81 | blocked_domains: input.blocked_domains, |
| 82 | max_uses: 8, // Hardcoded to 8 searches maximum |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | function makeOutputFromSearchResponse( |
| 87 | result: BetaContentBlock[], |