NutritionAIAPI#

class langchain_community.utilities.passio_nutrition_ai.NutritionAIAPI[source]#

Bases: BaseModel

Wrapper for the Passio Nutrition AI API.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param auth_: ManagedPassioLifeAuth [Required]#
param more_kwargs: dict [Optional]#
param nutritionai_api_url: str = 'https://api.passiolife.com/v2/products/napi/food/search/advanced'#
param nutritionai_subscription_key: str [Required]#
run(query: str) Dict | None[source]#

Run query through NutrtitionAI API and parse result.

Parameters:

query (str) –

Return type:

Dict | None

Examples using NutritionAIAPI