mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
2b0cbd65ba
## Add Passio Nutrition AI Food Search Tool to Community Package ### Description We propose adding a new tool to the `community` package, enabling integration with Passio Nutrition AI for food search functionality. This tool will provide a simple interface for retrieving nutrition facts through the Passio Nutrition AI API, simplifying user access to nutrition data based on food search queries. ### Implementation Details - **Class Structure:** Implement `NutritionAI`, extending `BaseTool`. It includes an `_run` method that accepts a query string and, optionally, a `CallbackManagerForToolRun`. - **API Integration:** Use `NutritionAIAPI` for the API wrapper, encapsulating all interactions with the Passio Nutrition AI and providing a clean API interface. - **Error Handling:** Implement comprehensive error handling for API request failures. ### Expected Outcome - **User Benefits:** Enable easy querying of nutrition facts from Passio Nutrition AI, enhancing the utility of the `langchain_community` package for nutrition-related projects. - **Functionality:** Provide a straightforward method for integrating nutrition information retrieval into users' applications. ### Dependencies - `langchain_core` for base tooling support - `pydantic` for data validation and settings management - Consider `requests` or another HTTP client library if not covered by `NutritionAIAPI`. ### Tests and Documentation - **Unit Tests:** Include tests that mock network interactions to ensure tool reliability without external API dependency. - **Documentation:** Create an example notebook in `docs/docs/integrations/tools/passio_nutrition_ai.ipynb` showing usage, setup, and example queries. ### Contribution Guidelines Compliance - Adhere to the project's linting and formatting standards (`make format`, `make lint`, `make test`). - Ensure compliance with LangChain's contribution guidelines, particularly around dependency management and package modifications. ### Additional Notes - Aim for the tool to be a lightweight, focused addition, not introducing significant new dependencies or complexity. - Potential future enhancements could include caching for common queries to improve performance. ### Twitter Handle - Here is our Passio AI [twitter handle](https://twitter.com/@passio_ai) where we announce our products. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17. |
||
---|---|---|
.. | ||
ainetwork | ||
amadeus | ||
arxiv | ||
azure_cognitive_services | ||
bearly | ||
bing_search | ||
brave_search | ||
clickup | ||
cogniswitch | ||
connery | ||
dataforseo_api_search | ||
ddg_search | ||
e2b_data_analysis | ||
edenai | ||
eleven_labs | ||
file_management | ||
github | ||
gitlab | ||
gmail | ||
golden_query | ||
google_cloud | ||
google_finance | ||
google_jobs | ||
google_lens | ||
google_places | ||
google_scholar | ||
google_search | ||
google_serper | ||
google_trends | ||
graphql | ||
human | ||
interaction | ||
jira | ||
json | ||
memorize | ||
merriam_webster | ||
metaphor_search | ||
multion | ||
nasa | ||
nuclia | ||
office365 | ||
openapi | ||
openweathermap | ||
passio_nutrition_ai | ||
playwright | ||
polygon | ||
powerbi | ||
pubmed | ||
reddit_search | ||
requests | ||
scenexplain | ||
searchapi | ||
searx_search | ||
semanticscholar | ||
shell | ||
slack | ||
sleep | ||
spark_sql | ||
sql_database | ||
stackexchange | ||
steam | ||
steamship_image_generation | ||
tavily_search | ||
vectorstore | ||
wikidata | ||
wikipedia | ||
wolfram_alpha | ||
you | ||
youtube | ||
zapier | ||
__init__.py | ||
convert_to_openai.py | ||
ifttt.py | ||
plugin.py | ||
render.py | ||
yahoo_finance_news.py |