Ionic shopping
IonicShoppingToolSpec #
Bases: BaseToolSpec
Ionic Shopping tool spec.
This tool can be used to build e-commerce experiences with LLMs.
Source code in llama-index-integrations/tools/llama-index-tools-ionic-shopping/llama_index/tools/ionic_shopping/base.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 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 |
|
query #
query(query: str, num_results: Optional[int] = 5, min_price: Optional[int] = None, max_price: Optional[int] = None) -> list[Product]
Use this function to search for products and to get product recommendations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str
|
A precise query of a product name or product category |
required |
num_results |
Optional[int]
|
Defaults to 5. The number of product results to return. |
5
|
min_price |
Option[int]
|
The minimum price in cents the requester is willing to pay |
None
|
max_price |
Option[int]
|
The maximum price in cents the requester is willing to pay |
None
|
Source code in llama-index-integrations/tools/llama-index-tools-ionic-shopping/llama_index/tools/ionic_shopping/base.py
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 |
|