Yelp
YelpToolSpec #
Bases: BaseToolSpec
Yelp tool spec.
Source code in llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/base.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
business_search #
business_search(location: str, term: str, radius: Optional[int] = None)
Make a query to Yelp to find businesses given a location to search.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
term
|
str
|
Search term, e.g. "food" or "restaurants", The term may also be the business's name, such as "Starbucks" |
required |
radius
|
int
|
A suggested search radius in meters. This field is used as a suggestion to the search. The actual search radius may be lower than the suggested radius in dense urban areas, and higher in regions of less business density. |
None
|
Source code in llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/base.py
42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
business_reviews #
business_reviews(id: str)
Make a query to Yelp to find a business uising an id from business_search.
Source code in llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/base.py
56 57 58 59 60 61 62 63 64 |
|