Skip to content

Commit 9e21927

Browse files
authored
Merge branch 'master' into support-bind_tools-for-fake-chat-model
2 parents 23f5afa + 166c027 commit 9e21927

File tree

303 files changed

+11617
-6063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+11617
-6063
lines changed

.devcontainer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ You may use the button above, or follow these steps to open this repo in a Codes
1515
1. Click **Create codespace on master**.
1616

1717
For more info, check out the [GitHub documentation](https://docs.github.com/en/free-pro-team@latest/github/developing-online-with-codespaces/creating-a-codespace#creating-a-codespace).
18-
18+
1919
## VS Code Dev Containers
2020

2121
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/langchain-ai/langchain)
2222

23-
> [!NOTE]
23+
> [!NOTE]
2424
> If you click the link above you will open the main repo (`langchain-ai/langchain`) and *not* your local cloned repo. This is fine if you only want to run and test the library, but if you want to contribute you can use the link below and replace with your username and cloned repo name:
2525
2626
```txt

.devcontainer/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
build:
55
dockerfile: libs/langchain/dev.Dockerfile
66
context: ..
7-
7+
88
networks:
99
- langchain-network
1010

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ For answers to common questions about this code of conduct, see the FAQ at
129129
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130130
[Mozilla CoC]: https://github.com/mozilla/diversity
131131
[FAQ]: https://www.contributor-covenant.org/faq
132-
[translations]: https://www.contributor-covenant.org/translations
132+
[translations]: https://www.contributor-covenant.org/translations

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: |
8-
Thank you for taking the time to file a bug report.
8+
Thank you for taking the time to file a bug report.
99
1010
Use this to report BUGS in LangChain. For usage questions, feature requests and general design questions, please use the [LangChain Forum](https://forum.langchain.com/).
1111
@@ -50,22 +50,22 @@ body:
5050
5151
If a maintainer can copy it, run it, and see it right away, there's a much higher chance that you'll be able to get help.
5252
53-
**Important!**
53+
**Important!**
5454
5555
* Avoid screenshots when possible, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.
5656
* Reduce your code to the minimum required to reproduce the issue if possible. This makes it much easier for others to help you.
5757
* Use code tags (e.g., ```python ... ```) to correctly [format your code](https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting).
5858
* INCLUDE the language label (e.g. `python`) after the first three backticks to enable syntax highlighting. (e.g., ```python rather than ```).
5959
6060
placeholder: |
61-
The following code:
61+
The following code:
6262
6363
```python
6464
from langchain_core.runnables import RunnableLambda
6565
6666
def bad_code(inputs) -> int:
6767
raise NotImplementedError('For demo purpose')
68-
68+
6969
chain = RunnableLambda(bad_code)
7070
chain.invoke('Hello!')
7171
```

.github/ISSUE_TEMPLATE/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
1515
Do **NOT** use this to ask usage questions or reporting issues with your code.
1616
17-
If you have usage questions or need help solving some problem,
17+
If you have usage questions or need help solving some problem,
1818
please use the [LangChain Forum](https://forum.langchain.com/).
1919
2020
If you're in the wrong place, here are some helpful links to find a better

.github/ISSUE_TEMPLATE/privileged.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ body:
88
99
If you are not a LangChain maintainer or were not asked directly by a maintainer to create an issue, then please start the conversation on the [LangChain Forum](https://forum.langchain.com/) instead.
1010
11-
You are a LangChain maintainer if you maintain any of the packages inside of the LangChain repository
11+
You are a LangChain maintainer if you maintain any of the packages inside of the LangChain repository
1212
or are a regular contributor to LangChain with previous merged pull requests.
1313
- type: checkboxes
1414
id: privileged

.github/actions/people/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.
44

55
COPY ./app /app
66

7-
CMD ["python", "/app/main.py"]
7+
CMD ["python", "/app/main.py"]

.github/actions/people/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: "Generate the data for the LangChain People page"
44
author: "Jacob Lee <[email protected]>"
55
inputs:
66
token:
7-
description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.LANGCHAIN_PEOPLE_GITHUB_TOKEN }}'
7+
description: "User token, to read the GitHub API. Can be passed in using {{ secrets.LANGCHAIN_PEOPLE_GITHUB_TOKEN }}"
88
required: true
99
runs:
10-
using: 'docker'
11-
image: 'Dockerfile'
10+
using: "docker"
11+
image: "Dockerfile"

.github/scripts/check_diff.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
import os
44
import sys
55
from collections import defaultdict
6-
from typing import Dict, List, Set
76
from pathlib import Path
8-
import tomllib
9-
10-
from packaging.requirements import Requirement
7+
from typing import Dict, List, Set
118

9+
import tomllib
1210
from get_min_versions import get_min_version_from_toml
13-
11+
from packaging.requirements import Requirement
1412

1513
LANGCHAIN_DIRS = [
1614
"libs/core",
@@ -38,7 +36,7 @@
3836
]
3937

4038
PY_312_MAX_PACKAGES = [
41-
"libs/partners/chroma", # https://github.com/chroma-core/chroma/issues/4382
39+
"libs/partners/chroma", # https://github.com/chroma-core/chroma/issues/4382
4240
]
4341

4442

@@ -85,9 +83,9 @@ def dependents_graph() -> dict:
8583
for depline in extended_deps:
8684
if depline.startswith("-e "):
8785
# editable dependency
88-
assert depline.startswith(
89-
"-e ../partners/"
90-
), "Extended test deps should only editable install partner packages"
86+
assert depline.startswith("-e ../partners/"), (
87+
"Extended test deps should only editable install partner packages"
88+
)
9189
partner = depline.split("partners/")[1]
9290
dep = f"langchain-{partner}"
9391
else:
@@ -271,7 +269,7 @@ def _get_configs_for_multi_dirs(
271269
dirs_to_run["extended-test"].add(dir_)
272270
elif file.startswith("libs/standard-tests"):
273271
# TODO: update to include all packages that rely on standard-tests (all partner packages)
274-
# note: won't run on external repo partners
272+
# Note: won't run on external repo partners
275273
dirs_to_run["lint"].add("libs/standard-tests")
276274
dirs_to_run["test"].add("libs/standard-tests")
277275
dirs_to_run["lint"].add("libs/cli")
@@ -285,7 +283,7 @@ def _get_configs_for_multi_dirs(
285283
elif file.startswith("libs/cli"):
286284
dirs_to_run["lint"].add("libs/cli")
287285
dirs_to_run["test"].add("libs/cli")
288-
286+
289287
elif file.startswith("libs/partners"):
290288
partner_dir = file.split("/")[2]
291289
if os.path.isdir(f"libs/partners/{partner_dir}") and [
@@ -303,7 +301,10 @@ def _get_configs_for_multi_dirs(
303301
f"Unknown lib: {file}. check_diff.py likely needs "
304302
"an update for this new library!"
305303
)
306-
elif file.startswith("docs/") or file in ["pyproject.toml", "uv.lock"]: # docs or root uv files
304+
elif file.startswith("docs/") or file in [
305+
"pyproject.toml",
306+
"uv.lock",
307+
]: # docs or root uv files
307308
docs_edited = True
308309
dirs_to_run["lint"].add(".")
309310

.github/scripts/check_prerelease_dependencies.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
23
import tomllib
34

45
if __name__ == "__main__":

0 commit comments

Comments
 (0)