You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community
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.
7 months ago
..
adapters docs: added `community` modules descriptions (#17827) 8 months ago
agent_toolkits Add dangerous parameter to requests tool (#18697) 7 months ago
callbacks community[minor] : adds callback handler for Fiddler AI (#17708) 7 months ago
chat_loaders Do not issue beta or deprecation warnings on internal calls (#15641) 9 months ago
chat_message_histories elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506) 7 months ago
chat_models community[minor]: Integration for `Friendli` LLM and `ChatFriendli` ChatModel. (#17913) 7 months ago
docstore community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
document_compressors community[feat]: Adds LLMLingua as a document compressor (#17711) 7 months ago
document_loaders community[minor]: added a feature to filter documents in Mongoloader (#18253) 7 months ago
document_transformers community[minor]: Adding asynchronous function implementation for Doctran (#15941) 9 months ago
embeddings community[patch] : Tidy up and update Clarifai SDK functions (#18314) 7 months ago
example_selectors docs: added `community` modules descriptions (#17827) 8 months ago
graphs comunity[patch]: Fix neo4j sanitizing values (#18750) 7 months ago
indexes community: Add document manager and mongo document manager (#17320) 7 months ago
llms community[patch] : Tidy up and update Clarifai SDK functions (#18314) 7 months ago
output_parsers langchain[patch], community[minor]: move `output_parsers.ernie_functions` (#16057) 9 months ago
retrievers community[patch]: Added support for filter out AWS Kendra search by score confidence (#12920) 7 months ago
storage multiple[patch]: fix deprecation versions (#18349) 7 months ago
tools community[patch]: Add Passio Nutrition AI Food Search Tool to Community Package (#18278) 7 months ago
utilities community[patch]: Add Passio Nutrition AI Food Search Tool to Community Package (#18278) 7 months ago
utils Add the BQ job usage tracking from LangChain (#17123) 8 months ago
vectorstores community[patch] : Tidy up and update Clarifai SDK functions (#18314) 7 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
cache.py community[minor]: Adding Azure Cosmos Mongo vCore Vector DB Cache (#16856) 7 months ago
py.typed community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago