Yelp
YelpToolSpec #
基类: BaseToolSpec
Yelp 工具规范。
源代码位于 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 65 |
|
business_search #
business_search(location: str, term: str, radius: Optional[int] = None)
对 Yelp 进行查询,以查找给定搜索位置的商家。
参数
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
term
|
str
|
搜索词,例如“food”或“restaurants”,该词也可以是商家名称,例如“Starbucks” |
必需 |
radius
|
int
|
建议的搜索半径,单位为米。此字段用作搜索的建议。在人口稠密的市区,实际搜索半径可能低于建议半径;在商家密度较低的地区,实际搜索半径可能高于建议半径。 |
None
|
源代码位于 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)
对 Yelp 进行查询,使用 business_search 返回的 ID 查找商家。
源代码位于 llama-index-integrations/tools/llama-index-tools-yelp/llama_index/tools/yelp/base.py
56 57 58 59 60 61 62 63 64 65 |
|