llama-index tools passio_nutrition_ai integration
Project description
Passio Nutrition AI Tool
This tool connects to a Passio Nutrition AI account and allows an Agent to perform searches against a database of over 2.2M foods.
You will need to set up a search key using Passio Nutrition API,learn more here: https://www.passio.ai/nutrition-ai#nutrition-api-pricing
Usage
Here's an example usage of the NutritionAIToolSpec.
from llama_index.tools.passio_nutrition_ai import NutritionAIToolSpec
from llama_index.agent import OpenAIAgent
tool_spec = NutritionAIToolSpec(api_key="your-key")
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat("What is the nutritional value of an apple?")
agent.chat("I had a cobb salad for lunch, how many calories did I eat?")
passio_nutrition_ai: Search for foods and their micro nutrition results related to a query
This loader is designed to be used as a way to load data as a Tool in a Agent.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_passio_nutrition_ai-0.3.0.tar.gz.
File metadata
- Download URL: llama_index_tools_passio_nutrition_ai-0.3.0.tar.gz
- Upload date:
- Size: 3.2 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 |
d466a205c44eaa4bfd7df4aeabac8754a11e13fa138145fcd59e2d541371f6ca
|
|
| MD5 |
d04bf49d3c9a44587ae55ccf41971a29
|
|
| BLAKE2b-256 |
c7453c8d33b8f9944ab510817edce55ca53530db02c46e9f5350b0483941a4a4
|
File details
Details for the file llama_index_tools_passio_nutrition_ai-0.3.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_passio_nutrition_ai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.6 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 |
1db7cb2bf827b065c4b882b72238da5f04ab39798794d0faec38f532c6e0688e
|
|
| MD5 |
674e001cae6ecdf0874bf763e2abfa70
|
|
| BLAKE2b-256 |
9978616f92a62a7a43a28e6b4bd3839df995d699ee8287ab6d7c2c0b9a6ea4c0
|