langchain/libs/community/langchain_community/tools
Ishani Vyas 2b0cbd65ba
community[patch]: Add Passio Nutrition AI Food Search Tool to Community Package (#18278)
## 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.
2024-03-08 20:33:22 +00:00
..
ainetwork
amadeus community[patch]: Improve amadeus tool and doc (#18509) 2024-03-05 16:17:22 -08:00
arxiv docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
azure_cognitive_services docs: docstrings langchain_community update (#14889) 2023-12-19 08:58:24 -05:00
bearly infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
bing_search community[patch]: Update bing results tool name (#16395) 2024-01-22 11:11:03 -08:00
brave_search
clickup
cogniswitch community[minor]: CogniSwitch Agent Toolkit for LangChain (#17312) 2024-02-19 10:54:13 -08:00
connery community[minor]: Connery Tool and Toolkit (#14506) 2024-01-29 12:45:03 -08:00
dataforseo_api_search community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
ddg_search community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
e2b_data_analysis Fix: Use Union instead of | to improve compatibility, fix #15244 (#15245) 2023-12-27 22:06:42 -08:00
edenai
eleven_labs
file_management
github
gitlab
gmail community[patch]: added latin-1 decoder to gmail search tool (#18116) 2024-02-28 19:28:29 +00:00
golden_query community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
google_cloud
google_finance
google_jobs
google_lens community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
google_places
google_scholar
google_search community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
google_serper
google_trends
graphql
human infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
interaction
jira
json
memorize community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
merriam_webster community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
metaphor_search exa: init pkg (#16553) 2024-01-24 20:57:17 -07:00
multion infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
nasa
nuclia
office365 infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
openapi
openweathermap community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
passio_nutrition_ai community[patch]: Add Passio Nutrition AI Food Search Tool to Community Package (#18278) 2024-03-08 20:33:22 +00:00
playwright
polygon community: Add PolygonFinancials Tool (#18324) 2024-02-29 10:56:05 -08:00
powerbi
pubmed community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
reddit_search
requests Add dangerous parameter to requests tool (#18697) 2024-03-07 15:10:56 -05:00
scenexplain
searchapi
searx_search community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
semanticscholar community: Semanticscholar tool to search 200M+ scientific articles (#15151) 2024-01-02 15:36:03 -08:00
shell infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
slack langchain-community: fix unicode escaping issue with SlackToolkit (#16616) 2024-01-29 08:38:12 -08:00
sleep
spark_sql
sql_database community[patch]: compatibility with SQLAlchemy 1.4.x (#17954) 2024-02-22 13:17:07 -05:00
stackexchange community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
steam community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
steamship_image_generation community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
tavily_search add defaults for tavily (#15075) 2023-12-22 11:48:26 -08:00
vectorstore community[patch]: Fix VectorStoreQATool (#18529) 2024-03-05 15:56:58 -08:00
wikidata community: Wikidata tool support (#16691) 2024-01-28 16:45:21 -08:00
wikipedia community[patch]: Fixed tool names snake_case (#16397) 2024-01-25 15:24:19 -08:00
wolfram_alpha
you community: Add you.com tool, add async to retriever, add async testing, add You tool doc (#18032) 2024-03-03 14:30:05 -08:00
youtube
zapier
__init__.py community: Add you.com tool, add async to retriever, add async testing, add You tool doc (#18032) 2024-03-03 14:30:05 -08:00
convert_to_openai.py core[patch], community[patch], openai[patch]: consolidate openai tool… (#16485) 2024-01-25 13:18:46 -08:00
ifttt.py
plugin.py
render.py core[patch], community[patch], openai[patch]: consolidate openai tool… (#16485) 2024-01-25 13:18:46 -08:00
yahoo_finance_news.py