llama-index tools ionic shopping integration
Project description
LlamaIndex Tools Integration: Ionic Shopping
pip install llama-index-tools-ionic-shopping
Ionic is a plug and play ecommerce marketplace for AI Assistants. By including the Ionic Tool in your agent, you are effortlessly providing your users with the ability to shop and transact directly within your agent, and you’ll get a cut of the transaction.
Attribution
Llearn more about how Ionic attributes sales to your agent. Provide your Ionic API Key when instantiating the tool:
from llama_index.tools.ionic_shopping import IonicShoppingToolSpec
ionic_tool = IonicShoppingToolSpec(api_key="<my Ionic API Key>").to_tool_list()
Usage
Try it out using the Jupyter notebook.
import openai
from llama_index.core.agent import (
OpenAIAgent,
) # requires llama-index-agent-openai
from llama_index.tools.ionic_shopping import IonicShoppingToolSpec
openai.api_key = "sk-api-key"
ionic_tool = IonicShoppingToolSpec(api_key="<my Ionic API Key>").to_tool_list()
agent = OpenAIAgent.from_tools(ionic_tool)
print(
agent.chat(
"I'm looking for a 5k monitor can you find me 3 options between $600 and $1000"
)
)
query
: used to search for products and to get product recommendations
Your users can use natural language to specify how many results they would like to see and what their budget is.
For more information on setting up your Agent with Ionic, see the Ionic documentation.
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
Built Distribution
File details
Details for the file llama_index_tools_ionic_shopping-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_tools_ionic_shopping-0.3.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fc8aa487c3a106c91c432c772a443505b0c3dcfd0b18e61ff684a3eae4bb596 |
|
MD5 | fb42e255ae3145a76dd4ee10a2bbb7a1 |
|
BLAKE2b-256 | 7c324e69f0e9d387f8d733f5708f118861e8629ad325a6cbf7720cf76dd2175f |
File details
Details for the file llama_index_tools_ionic_shopping-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_tools_ionic_shopping-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16da354f94363f5a60799d9a130998d65d5595e7570d674202eaa8fdc300cc94 |
|
MD5 | 164daa3a9c8da67dbf8ab205d2ca02ca |
|
BLAKE2b-256 | d4b5a7c1bf98683ff0f0dcd8eee636cdc101d81aefca1567690b268e5be24d68 |