Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/python/src/mainframe_orchestra/tools/web_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ 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.

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.

Expand Down