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.1.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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_tools_yelp-0.4.1.tar.gz
Algorithm Hash digest
SHA256 0b1a46aca749ebe297cbf23e94278fc089a5e74370b7d4e76bfd52859a1b7e5c
MD5 fb09ee8e4259e818177960678e4c424d
BLAKE2b-256 00fcdb7b098073639f0fe1bf78bea3463186c0aa7380a0352d0c8a6b84da1963

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_yelp-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c76f2b5447d24b132780cc06d6718ee0125f827513a395b348c43ba060135ee
MD5 c2d44552e1f8d3e9174bc9f433fd695e
BLAKE2b-256 64c76c32fc9b409e785e080a10247de0f097dc6665d07210402e3859ebc3bcf2

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