forked from langchain-ai/langchain
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downmerge langchain version 0.0.351 to skypoint-langchain (#6)
* Merge Existing changes from spc-langchain to skypoint-langchain * Update agent_toolkits imports and repository URL * Update tools and version in langchain library * Version dump * Merge version 0.0.351 * Update imports in toolkit.py and tool.py * Adding statetool * Update version numbers in pyproject.toml files * Update langchain version to 0.1.5 and fix _split_sources() method in BaseQAWithSourcesChain
- Loading branch information
Showing
4,591 changed files
with
392,955 additions
and
213,003 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import json | ||
import sys | ||
import os | ||
|
||
LANGCHAIN_DIRS = { | ||
"libs/core", | ||
"libs/langchain", | ||
"libs/experimental", | ||
"libs/community", | ||
} | ||
|
||
if __name__ == "__main__": | ||
files = sys.argv[1:] | ||
dirs_to_run = set() | ||
|
||
for file in files: | ||
if any( | ||
file.startswith(dir_) | ||
for dir_ in ( | ||
".github/workflows", | ||
".github/tools", | ||
".github/actions", | ||
"libs/core", | ||
".github/scripts/check_diff.py", | ||
) | ||
): | ||
dirs_to_run.update(LANGCHAIN_DIRS) | ||
elif "libs/community" in file: | ||
dirs_to_run.update( | ||
("libs/community", "libs/langchain", "libs/experimental") | ||
) | ||
elif "libs/partners" in file: | ||
partner_dir = file.split("/")[2] | ||
if os.path.isdir(f"libs/partners/{partner_dir}"): | ||
dirs_to_run.update( | ||
( | ||
f"libs/partners/{partner_dir}", | ||
"libs/langchain", | ||
"libs/experimental", | ||
) | ||
) | ||
# Skip if the directory was deleted | ||
elif "libs/langchain" in file: | ||
dirs_to_run.update(("libs/langchain", "libs/experimental")) | ||
elif "libs/experimental" in file: | ||
dirs_to_run.add("libs/experimental") | ||
elif file.startswith("libs/"): | ||
dirs_to_run.update(LANGCHAIN_DIRS) | ||
else: | ||
pass | ||
print(json.dumps(list(dirs_to_run))) |
Oops, something went wrong.