From 6264179c002d1fd5c0b3dda8fd43da19b7d52696 Mon Sep 17 00:00:00 2001 From: Ishan Goswami Date: Wed, 15 Apr 2026 17:26:46 +0000 Subject: [PATCH] update exa search description and search types Co-Authored-By: ishan --- packages/python/src/mainframe_orchestra/tools/web_tools.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/python/src/mainframe_orchestra/tools/web_tools.py b/packages/python/src/mainframe_orchestra/tools/web_tools.py index 5693cd4..70a100d 100644 --- a/packages/python/src/mainframe_orchestra/tools/web_tools.py +++ b/packages/python/src/mainframe_orchestra/tools/web_tools.py @@ -20,12 +20,12 @@ class WebTools: def exa_search( queries: Union[str, List[str]], num_results: int = 10, - search_type: str = "neural", + search_type: str = "auto", num_sentences: int = 5, highlights_per_url: int = 3, ) -> dict: """ - Searches the internet using the Exa search engine and returns a structured response. + Searches the internet using Exa, the fastest and most accurate web search API for AI. This function sends one or more search queries to the Exa API, processes the responses, and returns a structured dictionary containing the search results. @@ -33,7 +33,7 @@ def exa_search( Args: queries (Union[str, List[str]]): The search query string or a list of query strings. num_results (int, optional): The number of search results to return per query. Defaults to 3. - search_type (str, optional): The type of search to perform. Can be 'neural' or 'keyword'. Defaults to 'neural'. + search_type (str, optional): The type of search to perform. Can be 'auto', 'neural', 'keyword', 'fast', 'deep', or 'instant'. Defaults to 'auto'. num_sentences (int, optional): The number of sentences to include in each highlight. Defaults to 3. highlights_per_url (int, optional): The number of highlights to include per URL. Defaults to 3.