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
Close
Hashes for llama_index_tools_passio_nutrition_ai-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d039234527d852c66279992e6fe4bddfaca3743280fe4e990ba52251f291c12d |
|
MD5 | 513ddf76b9e9d9bf6d13bd0a6788ab4e |
|
BLAKE2b-256 | b450d26421da54891920ef6baeca33d5256297af248de1edf827e8b520cb2f1e |
Close
Hashes for llama_index_tools_passio_nutrition_ai-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4ba39f9472b1c9a15ad28db588e7e18379d8cb020ee500cae58cded6af5417 |
|
MD5 | e0429d842f804c4ee6dc9864abf40c09 |
|
BLAKE2b-256 | 90e12a696e7d71d5b47ed709c78111f5d21dfe347d4b51ced64caaa195501a74 |