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. See here for examples.
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
Close
Hashes for llama_index_tools_passio_nutrition_ai-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf593cc60ee34c74e23573b4c9b3626f3ca6389ef44ba70448a4df5f32258ee |
|
MD5 | 64882cc78b6d4e81832cb206476e1f18 |
|
BLAKE2b-256 | cb8fd7fe26badda4b658dd503d018581b47c4ab8ddf19d1b84612db051a835c2 |
Close
Hashes for llama_index_tools_passio_nutrition_ai-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55206119d634bc7ddc1c8a11d2ef76c37e247f91cbbc8197da66ad644c5e0699 |
|
MD5 | af2e42f20169f7844327e3c4f560a756 |
|
BLAKE2b-256 | 0cbe07ffe6d2d8f88faa7c471711ada87a2b0e61e44c9a8b6fad3a99f5965dae |