Name | llama-index-tools-passio-nutrition-ai JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | llama-index tools passio_nutrition_ai integration |
upload_time | 2024-08-22 07:37:26 |
maintainer | ivyas21 |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.8.1 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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.
```python
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-tools-passio-nutrition-ai",
"maintainer": "ivyas21",
"docs_url": null,
"requires_python": "<4.0,>=3.8.1",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/b4/50/d26421da54891920ef6baeca33d5256297af248de1edf827e8b520cb2f1e/llama_index_tools_passio_nutrition_ai-0.2.0.tar.gz",
"platform": null,
"description": "# Passio Nutrition AI Tool\n\nThis tool connects to a Passio Nutrition AI account and allows an Agent to perform searches against a database of over 2.2M foods.\n\nYou will need to set up a search key using Passio Nutrition API,learn more here: https://www.passio.ai/nutrition-ai#nutrition-api-pricing\n\n## Usage\n\nHere's an example usage of the NutritionAIToolSpec.\n\n```python\nfrom llama_index.tools.passio_nutrition_ai import NutritionAIToolSpec\nfrom llama_index.agent import OpenAIAgent\n\ntool_spec = NutritionAIToolSpec(api_key=\"your-key\")\n\nagent = OpenAIAgent.from_tools(tool_spec.to_tool_list())\n\nagent.chat(\"What is the nutritional value of an apple?\")\nagent.chat(\"I had a cobb salad for lunch, how many calories did I eat?\")\n```\n\n`passio_nutrition_ai`: Search for foods and their micro nutrition results related to a query\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index tools passio_nutrition_ai integration",
"version": "0.2.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "90e12a696e7d71d5b47ed709c78111f5d21dfe347d4b51ced64caaa195501a74",
"md5": "e0429d842f804c4ee6dc9864abf40c09",
"sha256": "2c4ba39f9472b1c9a15ad28db588e7e18379d8cb020ee500cae58cded6af5417"
},
"downloads": -1,
"filename": "llama_index_tools_passio_nutrition_ai-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0429d842f804c4ee6dc9864abf40c09",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8.1",
"size": 3603,
"upload_time": "2024-08-22T07:37:25",
"upload_time_iso_8601": "2024-08-22T07:37:25.669112Z",
"url": "https://files.pythonhosted.org/packages/90/e1/2a696e7d71d5b47ed709c78111f5d21dfe347d4b51ced64caaa195501a74/llama_index_tools_passio_nutrition_ai-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b450d26421da54891920ef6baeca33d5256297af248de1edf827e8b520cb2f1e",
"md5": "513ddf76b9e9d9bf6d13bd0a6788ab4e",
"sha256": "d039234527d852c66279992e6fe4bddfaca3743280fe4e990ba52251f291c12d"
},
"downloads": -1,
"filename": "llama_index_tools_passio_nutrition_ai-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "513ddf76b9e9d9bf6d13bd0a6788ab4e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8.1",
"size": 3245,
"upload_time": "2024-08-22T07:37:26",
"upload_time_iso_8601": "2024-08-22T07:37:26.863118Z",
"url": "https://files.pythonhosted.org/packages/b4/50/d26421da54891920ef6baeca33d5256297af248de1edf827e8b520cb2f1e/llama_index_tools_passio_nutrition_ai-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 07:37:26",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-passio-nutrition-ai"
}