-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Thank you for contributing to LangChain! Replace this entire comment with: - **Description:** a description of the change, - **Issue:** the issue # it fixes (if applicable), - **Dependencies:** any dependencies required for this change, - **Tag maintainer:** for a quicker response, tag the relevant maintainer (see below), - **Twitter handle:** we announce bigger features on Twitter. If your PR gets announced, and you'd like a mention, we'll gladly shout you out! Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally. See contribution guidelines for more information on how to write/run tests, lint, etc: https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md If you're adding a new integration, please include: 1. a test for the integration, preferably unit tests that do not rely on network access, 2. an example notebook showing its use. It lives in `docs/extras` directory. If no one reviews your PR within a few days, please @-mention one of @baskaryan, @eyurtsev, @hwchase17. --> - **Description:** Moved the agent designed to interact with and query a MongoDB database using PyMongo into experimental, and fixed the unit test issues that came about using MongoDB Unix sockets. - **Issue:** There were some some test workflows not running in `Harrison/mongo-agent` due to using nonexistent sockets, and Mongo agent should have been moved to experimental due to concerns mentioned in #13991 - **Dependencies:** `pymongo` in experimental, not optional - Reason: Github workflows were throwing `pymongo ModuleNotFound` errors when it was optional, even after adding it to extended testing, running poetry lock, doing everything that the testing documentation said to do - **Related:** #14056, #13991 - **Tag maintainers:** @hwchase17 @efriis --------- Co-authored-by: Harrison Chase <[email protected]>
- Loading branch information
Showing
30 changed files
with
297 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,13 @@ jobs: | |
working-directory: ${{ inputs.working-directory }} | ||
cache-key: compile-integration | ||
|
||
- name: MongoDB in GitHub Actions | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 7.0 | ||
mongodb-replica-set: test | ||
mongodb-port: 27017 | ||
|
||
- name: Install integration dependencies | ||
shell: bash | ||
run: poetry install --with=test_integration | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
...in/agents/agent_toolkits/mongo/toolkit.py → ...al/agents/agent_toolkits/mongo/toolkit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
from langchain_experimental.tools.mongo_database.tool import ( | ||
InfoMongoDBTool, | ||
ListMongoDBTool, | ||
QueryMongoDBCheckerTool, | ||
QueryMongoDBTool, | ||
) | ||
from langchain_experimental.tools.python.tool import PythonAstREPLTool, PythonREPLTool | ||
|
||
__all__ = ["PythonREPLTool", "PythonAstREPLTool"] | ||
__all__ = [ | ||
"PythonREPLTool", | ||
"PythonAstREPLTool", | ||
"InfoMongoDBTool", | ||
"ListMongoDBTool", | ||
"QueryMongoDBCheckerTool", | ||
"QueryMongoDBTool", | ||
] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
libs/experimental/langchain_experimental/utilities/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from langchain_experimental.utilities.mongo_database import MongoDatabase | ||
from langchain_experimental.utilities.python import PythonREPL | ||
|
||
__all__ = ["PythonREPL"] | ||
__all__ = ["PythonREPL", "MongoDatabase"] |
File renamed without changes.
Oops, something went wrong.