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.5.0.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.5.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_ionic_shopping-0.5.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_ionic_shopping-0.5.0.tar.gz
Algorithm Hash digest
SHA256 32274671a2f6881cefafc028abb9dc7d5abe1c0e74ddacb99b02fdaebf19a1fa
MD5 32498bc791b65a335efbd30b2891545c
BLAKE2b-256 e85c47da82fa43616e3ab11f493cc5bf51d98303d9c2cc3f601eb7f3b1863492

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llama_index_tools_ionic_shopping-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_ionic_shopping-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97c0b76ac20f63c19a303a326358a4025646a08c6d1aba93fcd2ce27b4df5583
MD5 7688fa2d35a4ee227e414d5b7b37c9c4
BLAKE2b-256 3716bdcd02e312b47c0b0dc45d0991180ad7506a116f83ebe3c962f373f1604f

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