buywhere-llamaindex
LlamaIndex FunctionTool wrappers for the BuyWhere product catalog API — search, compare, and track prices across 40+ retailers in Southeast Asia and the US.
Installation
pip install buywhere-llamaindex
Quick Start
import os
from buywhere_llamaindex import create_buywhere_tools
from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI
os.environ["BUYWHERE_API_KEY"] = "bw_live_..."
tools = create_buywhere_tools()
agent = ReActAgent.from_tools(tools, llm=OpenAI(model="gpt-4o"), verbose=True)
response = agent.chat("Find me the cheapest wireless headphones in Singapore under SGD 100")
print(response)
Available Tools
| Tool | Description |
|---|---|
search_products |
Full-text product search across all retailers |
get_product |
Fetch a single product by ID |
compare_prices |
Compare prices for a product across retailers |
find_deals |
Discover products with the biggest discounts |
browse_categories |
List all available product categories |
get_category_products |
Get products within a specific category |
get_deals |
Get the current deals feed |
Configuration
Set the BUYWHERE_API_KEY environment variable, or pass it directly:
tools = create_buywhere_tools(api_key="bw_live_...", base_url="https://api.buywhere.ai")
Get your API key at buywhere.ai/api-keys.
Metadata
Release files for buywhere-llamaindex 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| buywhere_llamaindex-0.1.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| buywhere_llamaindex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / buywhere_llamaindex-0.1.0.tar.gz
| Download URL | buywhere_llamaindex-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a34447ddf4a4dcebfc1e5e76a9879b8a9bbe5daa71a3920b0adc4205529d570
|
|
BLAKE2b-256 checksum How to use checksums |
ff988dc638c7d26ab94e326e00085d0cc5e1171f78e2b80b3ff2d88dfe88f230
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / buywhere_llamaindex-0.1.0-py3-none-any.whl
| Download URL | buywhere_llamaindex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5242abdcb6632cd1958460302366e6b1d24f1e3dde6b11577c5f78dd96f893d4
|
|
BLAKE2b-256 checksum How to use checksums |
d1f9db72553f94757e038a7267983ae149575aaf725baa3c142b3fdd1b47fafd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|