Name | llama-index-tools-passio-nutrition-ai JSON |
Version |
0.3.0
JSON |
| download |
home_page | None |
Summary | llama-index tools passio_nutrition_ai integration |
upload_time | 2024-11-17 23:03:10 |
maintainer | ivyas21 |
docs_url | None |
author | Your Name |
requires_python | <4.0,>=3.9 |
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.9",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/c7/45/3c8d33b8f9944ab510817edce55ca53530db02c46e9f5350b0483941a4a4/llama_index_tools_passio_nutrition_ai-0.3.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.3.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9978616f92a62a7a43a28e6b4bd3839df995d699ee8287ab6d7c2c0b9a6ea4c0",
"md5": "674e001cae6ecdf0874bf763e2abfa70",
"sha256": "1db7cb2bf827b065c4b882b72238da5f04ab39798794d0faec38f532c6e0688e"
},
"downloads": -1,
"filename": "llama_index_tools_passio_nutrition_ai-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "674e001cae6ecdf0874bf763e2abfa70",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 3598,
"upload_time": "2024-11-17T23:03:09",
"upload_time_iso_8601": "2024-11-17T23:03:09.560291Z",
"url": "https://files.pythonhosted.org/packages/99/78/616f92a62a7a43a28e6b4bd3839df995d699ee8287ab6d7c2c0b9a6ea4c0/llama_index_tools_passio_nutrition_ai-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c7453c8d33b8f9944ab510817edce55ca53530db02c46e9f5350b0483941a4a4",
"md5": "d04bf49d3c9a44587ae55ccf41971a29",
"sha256": "d466a205c44eaa4bfd7df4aeabac8754a11e13fa138145fcd59e2d541371f6ca"
},
"downloads": -1,
"filename": "llama_index_tools_passio_nutrition_ai-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "d04bf49d3c9a44587ae55ccf41971a29",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 3224,
"upload_time": "2024-11-17T23:03:10",
"upload_time_iso_8601": "2024-11-17T23:03:10.401758Z",
"url": "https://files.pythonhosted.org/packages/c7/45/3c8d33b8f9944ab510817edce55ca53530db02c46e9f5350b0483941a4a4/llama_index_tools_passio_nutrition_ai-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-17 23:03:10",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-tools-passio-nutrition-ai"
}