Skip to main content

llama-index tools yelp integration

Project description

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
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI


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

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(),
    llm=OpenAI(model="gpt-4.1"),
)

print(await agent.run("what good restaurants are in toronto"))
print(await agent.run("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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_yelp-0.4.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_yelp-0.4.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_yelp-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_yelp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a6bc760a57ab4458885b3907de0d431cb90f36bcbf2da9fe686c8c56e70399e0
MD5 37db967320abab3d3670533f25df1da5
BLAKE2b-256 30544f0723d2b013bdf2764eca2bb9ae6a7bf2b62c742aed12cf2d80e4be58ff

See more details on using hashes here.

File details

Details for the file llama_index_tools_yelp-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_yelp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3cfeb1f54fce0200827f5869c9e2d2a17ec8808caf43e6fca174dc913deb195
MD5 4d4a781b366e859cee44b1f76b7114ba
BLAKE2b-256 90a94b88145e30182c9591dd9e346d1902b104cc51298ae30e5a2e184a6236b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page