@@ -53,6 +53,7 @@ def _search(self,
5353 country : str = None ,
5454 auto_parameters : bool = None ,
5555 include_favicon : bool = None ,
56+ include_usage : bool = None ,
5657 ** kwargs
5758 ) -> dict :
5859 """
@@ -76,6 +77,7 @@ def _search(self,
7677 "country" : country ,
7778 "auto_parameters" : auto_parameters ,
7879 "include_favicon" : include_favicon ,
80+ "include_usage" : include_usage ,
7981 }
8082
8183 data = {k : v for k , v in data .items () if v is not None }
@@ -130,6 +132,7 @@ def search(self,
130132 country : str = None ,
131133 auto_parameters : bool = None ,
132134 include_favicon : bool = None ,
135+ include_usage : bool = None ,
133136 ** kwargs , # Accept custom arguments
134137 ) -> dict :
135138 """
@@ -153,6 +156,7 @@ def search(self,
153156 country = country ,
154157 auto_parameters = auto_parameters ,
155158 include_favicon = include_favicon ,
159+ include_usage = include_usage ,
156160 ** kwargs ,
157161 )
158162
@@ -169,6 +173,7 @@ def _extract(self,
169173 format : Literal ["markdown" , "text" ] = None ,
170174 timeout : float = 30 ,
171175 include_favicon : bool = None ,
176+ include_usage : bool = None ,
172177 ** kwargs
173178 ) -> dict :
174179 """
@@ -181,6 +186,7 @@ def _extract(self,
181186 "format" : format ,
182187 "timeout" : timeout ,
183188 "include_favicon" : include_favicon ,
189+ "include_usage" : include_usage ,
184190 }
185191
186192 data = {k : v for k , v in data .items () if v is not None }
@@ -220,6 +226,7 @@ def extract(self,
220226 format : Literal ["markdown" , "text" ] = None ,
221227 timeout : float = 30 ,
222228 include_favicon : bool = None ,
229+ include_usage : bool = None ,
223230 ** kwargs , # Accept custom arguments
224231 ) -> dict :
225232 """
@@ -231,6 +238,7 @@ def extract(self,
231238 format ,
232239 timeout ,
233240 include_favicon = include_favicon ,
241+ include_usage = include_usage ,
234242 ** kwargs )
235243
236244 tavily_results = response_dict .get ("results" , [])
@@ -257,6 +265,7 @@ def _crawl(self,
257265 format : Literal ["markdown" , "text" ] = None ,
258266 timeout : float = 150 ,
259267 include_favicon : bool = None ,
268+ include_usage : bool = None ,
260269 ** kwargs
261270 ) -> dict :
262271 """
@@ -279,6 +288,7 @@ def _crawl(self,
279288 "format" : format ,
280289 "timeout" : timeout ,
281290 "include_favicon" : include_favicon ,
291+ "include_usage" : include_usage ,
282292 }
283293
284294 if kwargs :
@@ -328,6 +338,7 @@ def crawl(self,
328338 format : Literal ["markdown" , "text" ] = None ,
329339 timeout : float = 150 ,
330340 include_favicon : bool = None ,
341+ include_usage : bool = None ,
331342 ** kwargs
332343 ) -> dict :
333344 """
@@ -349,6 +360,7 @@ def crawl(self,
349360 format = format ,
350361 timeout = timeout ,
351362 include_favicon = include_favicon ,
363+ include_usage = include_usage ,
352364 ** kwargs )
353365
354366 return response_dict
@@ -366,6 +378,7 @@ def _map(self,
366378 allow_external : bool = None ,
367379 include_images : bool = None ,
368380 timeout : float = 150 ,
381+ include_usage : bool = None ,
369382 ** kwargs
370383 ) -> dict :
371384 """
@@ -384,6 +397,7 @@ def _map(self,
384397 "allow_external" : allow_external ,
385398 "include_images" : include_images ,
386399 "timeout" : timeout ,
400+ "include_usage" : include_usage ,
387401 }
388402
389403 if kwargs :
@@ -430,6 +444,7 @@ def map(self,
430444 allow_external : bool = None ,
431445 include_images : bool = None ,
432446 timeout : float = 150 ,
447+ include_usage : bool = None ,
433448 ** kwargs
434449 ) -> dict :
435450 """
@@ -448,6 +463,7 @@ def map(self,
448463 allow_external = allow_external ,
449464 include_images = include_images ,
450465 timeout = timeout ,
466+ include_usage = include_usage ,
451467 ** kwargs )
452468
453469 return response_dict
0 commit comments