Skip to content
Snippets Groups Projects
user avatar
39779bfb
History
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Yelp Tool

This tool connects to Yelp and allows the Agent to search for business and fetch the reviews.

Usage

This tool has more extensive example usage documented in a Jupyter notebook here

Here's an example usage of the YelpToolSpec.

from llama_index.tools.yelp import YelpToolSpec


tool_spec = YelpToolSpec(api_key="your-key", client_id="your-id")

agent = OpenAIAgent.from_tools(zapier_spec.to_tool_list(), verbose=True)

agent.chat("what good restaurants are in toronto")
agent.chat("what are the details of lao lao bar")

business_search: Use a natural language query to search for businesses business_reviews: Use a business id to fetch reviews

This loader is designed to be used as a way to load data as a Tool in a Agent. See here for examples.