Skip to main content

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.workflow import FunctionAgent
from llama_index.llms.openai import 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 = FunctionAgent(
    tools=ionic_tool,
    llm=OpenAI(model="gpt-4.1"),
)

print(
    await agent.run(
        "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

llama_index_tools_ionic_shopping-0.4.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_tools_ionic_shopping-0.4.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_ionic_shopping-0.4.1.tar.gz
Algorithm Hash digest
SHA256 a6444e9c44a27d3e797d0e1f737ecadcf79f009a8fe3c8c0f292f8b2d9a2c232
MD5 223d72530fb4bf21092dac2d3ff4f012
BLAKE2b-256 9bc68ba695f60a0142b50580d05b928b9a03da0b5a73e137055d366c525d683a

See more details on using hashes here.

File details

Details for the file llama_index_tools_ionic_shopping-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_ionic_shopping-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97fd01312e753e03a1378f212a863555f4496683ee912551fbdade7ca26a5af4
MD5 8bde2959a06f60d5944bc81f8b1b5522
BLAKE2b-256 5a75adde7da07c8b9caa5d00844925ab906827fcce6a9d23ee8c8cc7c17fd6e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page