ExaTools enable an Assistant to search the web using Exa.

Example

The following assistant will run seach exa for “language models” and print the response.

cookbook/tools/exa_tools.py
from phi.assistant import Assistant
from phi.tools.exa import ExaTools

assistant = Assistant(tools=[ExaTools()], show_tool_calls=True)
assistant.print_response("Search exa for 'language models'", markdown=True)

Toolkit Params

api_key
str

API key for authentication purposes.

search
bool
default: "False"

Determines whether to enable search functionality.

search_with_contents
bool
default: "True"

Indicates whether to include contents in the search results.

show_results
bool
default: "False"

Controls whether to display search results directly.

Toolkit Functions

search_exa
Searches Exa for a query.
search_exa_with_contents

Searches Exa for a query and returns the contents from the search results.