(&self)
| 107 | } |
| 108 | |
| 109 | fn parameters(&self) -> serde_json::Value { |
| 110 | serde_json::json!({ |
| 111 | "type": "object", |
| 112 | "properties": { |
| 113 | "query": { |
| 114 | "type": "string", |
| 115 | "description": "Web search query" |
| 116 | }, |
| 117 | "numResults": { |
| 118 | "type": "integer", |
| 119 | "default": 8, |
| 120 | "description": "Number of search results to return" |
| 121 | }, |
| 122 | "num_results": { |
| 123 | "type": "integer", |
| 124 | "default": 8, |
| 125 | "description": "Number of search results to return (snake_case alias)" |
| 126 | }, |
| 127 | "livecrawl": { |
| 128 | "type": "string", |
| 129 | "enum": ["fallback", "preferred"], |
| 130 | "default": "fallback", |
| 131 | "description": "Live crawl mode - 'fallback': use live crawling as backup if cached content unavailable, 'preferred': prioritize live crawling" |
| 132 | }, |
| 133 | "type": { |
| 134 | "type": "string", |
| 135 | "enum": ["auto", "fast", "deep"], |
| 136 | "default": "auto", |
| 137 | "description": "Search type - 'auto': balanced search, 'fast': quick results, 'deep': comprehensive search" |
| 138 | }, |
| 139 | "contextMaxCharacters": { |
| 140 | "type": "integer", |
| 141 | "default": 10000, |
| 142 | "description": "Maximum characters for context string optimized for LLMs" |
| 143 | }, |
| 144 | "context_max_characters": { |
| 145 | "type": "integer", |
| 146 | "default": 10000, |
| 147 | "description": "Maximum characters for context string optimized for LLMs (snake_case alias)" |
| 148 | } |
| 149 | }, |
| 150 | "required": ["query"] |
| 151 | }) |
| 152 | } |
| 153 | |
| 154 | async fn execute( |
| 155 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected