External Tools
Exa Search Tool
Tools
- Tools
- LangChain Agent
- External Tools
- DuckDuckGo Agent
- arXiv Agent
- Calculator Agent
- CSV Agent
- DuckDB Agent
- Excel Agent
- File Agent
- JSON Agent
- Newspaper Agent
- Pandas Agent
- Python Agent
- Shell Agent
- Spider Agent
- Wikipedia Agent
- XML Agent
- YAML Agent
- YFinance Agent
- Low Code Custom Tools
- Tools as Class
- PraisonAI Tools Creator GPT
- DuckDuckGo PraisonAI Integration
- Langchain Tools
- Wikipedia PraisonAI Integration
- YouTube Search PraisonAI Integration
- Tavily PraisonAI Integration
- Reddit PraisonAI Integration
- You.com PraisonAI Integration
- Crawl4AI PraisonAI Integration
- Mem0 and PraisonAI Integration
- Composio PraisonAI Integration
- Google Calendar Tools
External Tools
Exa Search Tool
Guide for using the Exa Search tool with PraisonAI agents.
Overview
The Exa Search tool is a tool that allows you to search the web and retrieve content using the Exa API.
pip install praisonaiagents exa-py
export EXA_API_KEY=your_api_key_here
export OPENAI_API_KEY=your_api_key_here
from praisonaiagents import Agent, PraisonAIAgents
from exa_py import Exa
import os
exa = Exa(api_key=os.environ["EXA_API_KEY"])
def search_and_contents(query: str):
"""Search for webpages based on the query and retrieve their contents."""
# This combines two API endpoints: search and contents retrieval
return str(exa.search_and_contents(
query, use_autoprompt=False, num_results=5, text=True, highlights=True
))
data_agent = Agent(instructions="Find the latest jobs for Video Editor in New York at startups", tools=[search_and_contents])
editor_agent = Agent(instructions="Curate the available jobs at startups and their email for the candidate to apply based on his skills on Canva, Adobe Premiere Pro, and Adobe After Effects")
agents = PraisonAIAgents(agents=[data_agent, editor_agent], process='hierarchical')
agents.start()
Was this page helpful?
On this page