From 546b18d36723a7eadf9c8fdd7a5ea70fb196a8e9 Mon Sep 17 00:00:00 2001 From: Shafic Zziwa Date: Wed, 15 Jan 2025 14:50:09 +0300 Subject: [PATCH] Update tavily-client.ts Added topic type to the Tavily searchOptions --- packages/tavily/src/tavily-client.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/tavily/src/tavily-client.ts b/packages/tavily/src/tavily-client.ts index 612c2bf..cf9731e 100644 --- a/packages/tavily/src/tavily-client.ts +++ b/packages/tavily/src/tavily-client.ts @@ -23,11 +23,19 @@ export namespace tavily { /** Search query. (required) */ query: string + /** + * The category of the search. + * This will determine which of our agents willbe used for the search. Currently, only "general" and "news" are supported. + * Default is "general". + */ + topic?: string + /** * The depth of the search. It can be basic or advanced. Default is basic * for quick results and advanced for indepth high quality results but * longer response time. Advanced calls equals 2 requests. */ + search_depth?: 'basic' | 'advanced' /** Include a synthesized answer in the search results. Default is `false`. */