Passio nutrition ai
NutritionAIToolSpec #
Bases: BaseToolSpec
Tool that queries the Passio Nutrition AI API.
Source code in llama-index-integrations/tools/llama-index-tools-passio-nutrition-ai/llama_index/tools/passio_nutrition_ai/base.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
|
nutrition_ai_search #
nutrition_ai_search(query: str)
Retrieve nutrition facts for a given food item. Input should be a search query string for the food item.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str
|
The food item to look for. |
required |
Returns a JSON result with the nutrition facts for the food item and, if available, alternative food items which sometimes are a better match.
Source code in llama-index-integrations/tools/llama-index-tools-passio-nutrition-ai/llama_index/tools/passio_nutrition_ai/base.py
134 135 136 137 138 139 140 141 142 143 144 |
|