Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs[patch]: Improve env handlingin documentation #26346

Closed
wants to merge 170 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
8590b42
infra: ignore core dependents for 0.3rc (#25980)
efriis Sep 3, 2024
5a0e82c
infra: fix 0.3rc ci check (#25988)
efriis Sep 3, 2024
ae5a574
core[major]: Upgrade langchain-core to pydantic 2 (#25986)
eyurtsev Sep 3, 2024
29413a2
infra: also run lint/test on rc (#25992)
efriis Sep 3, 2024
0da201c
core: fix lint 0.3rc (#25993)
efriis Sep 3, 2024
8e4bae3
core[major]: Drop python 3.8 support (#25996)
eyurtsev Sep 3, 2024
91e09ff
merge master (#25997)
baskaryan Sep 3, 2024
241b6d2
Revert "merge master (#25997)" (#25998)
baskaryan Sep 3, 2024
9a9ab65
merge master correctly (#25999)
baskaryan Sep 3, 2024
615f8b0
openai[major]: switch to pydantic v2
baskaryan Sep 3, 2024
5f5287c
fmt
baskaryan Sep 3, 2024
6777106
fmt
baskaryan Sep 3, 2024
5fc1104
fmt
baskaryan Sep 3, 2024
9399df7
fmt
baskaryan Sep 3, 2024
ec9e8eb
fmt
baskaryan Sep 4, 2024
559d8a4
fireworks[major]: switch to pydantic v2
baskaryan Sep 4, 2024
6aac2ee
fmt
baskaryan Sep 4, 2024
5616348
fmt
baskaryan Sep 4, 2024
02f8720
standard-tests[major]: use pydantic v2
baskaryan Sep 4, 2024
2c742cc
standard-tests[major]: use pydantic v2 (#26005)
baskaryan Sep 4, 2024
99348e1
Merge branch 'v0.3rc' into bagatur/openai_attempt_2
baskaryan Sep 4, 2024
6ad515d
Merge branch 'v0.3rc' into bagatur/fireworks_0.3
baskaryan Sep 4, 2024
954abcc
infra: remove pydantic v1 tests
baskaryan Sep 4, 2024
0529c99
rm
baskaryan Sep 4, 2024
5f98975
core[patch]: Fix injected args in tool signature (#25991)
eyurtsev Sep 4, 2024
a976f20
Merge branch 'v0.3rc' into bagatur/rm_pydantic_v1_ci
baskaryan Sep 4, 2024
dd4418a
rm requires
baskaryan Sep 4, 2024
2888e34
infra: remove pydantic v1 tests (#26006)
baskaryan Sep 4, 2024
b787645
Merge branch 'v0.3rc' into bagatur/openai_attempt_2
baskaryan Sep 4, 2024
5ad2b8c
Merge branch 'v0.3rc' into bagatur/fireworks_0.3
baskaryan Sep 4, 2024
a91bd27
Update libs/partners/fireworks/langchain_fireworks/chat_models.py
baskaryan Sep 4, 2024
d0cc9b0
Update libs/partners/fireworks/langchain_fireworks/chat_models.py
baskaryan Sep 4, 2024
49a1f5d
Update libs/partners/openai/langchain_openai/chat_models/azure.py
baskaryan Sep 4, 2024
5e31cd9
Update libs/partners/openai/langchain_openai/chat_models/azure.py
baskaryan Sep 4, 2024
5199555
Update libs/partners/openai/langchain_openai/chat_models/base.py
baskaryan Sep 4, 2024
78c454c
Update libs/partners/openai/langchain_openai/chat_models/base.py
baskaryan Sep 4, 2024
d072d59
Update libs/partners/openai/langchain_openai/embeddings/azure.py
baskaryan Sep 4, 2024
179aaa4
Update libs/partners/openai/langchain_openai/embeddings/azure.py
baskaryan Sep 4, 2024
c0448f2
Update libs/partners/openai/langchain_openai/embeddings/base.py
baskaryan Sep 4, 2024
76572f9
Update libs/partners/openai/langchain_openai/embeddings/base.py
baskaryan Sep 4, 2024
78468de
Update libs/partners/openai/langchain_openai/llms/azure.py
baskaryan Sep 4, 2024
54d6808
Update libs/partners/openai/langchain_openai/llms/azure.py
baskaryan Sep 4, 2024
c1ff616
Update libs/partners/openai/langchain_openai/llms/base.py
baskaryan Sep 4, 2024
4c7afb0
Update libs/partners/openai/langchain_openai/llms/base.py
baskaryan Sep 4, 2024
f9d91e1
fireworks[major]: switch to pydantic v2 (#26004)
baskaryan Sep 4, 2024
5adeaf0
openai[major]: switch to pydantic v2 (#26001)
baskaryan Sep 4, 2024
b27bfa6
pinecone[major]: Update to pydantic v2
baskaryan Sep 4, 2024
88065d7
fmt
baskaryan Sep 4, 2024
4799ad9
core[patch]: remove warnings from protected namespaces on RunnableSer…
ccurme Sep 4, 2024
7cee7fb
mistralai: update pydantic (#25995)
ccurme Sep 4, 2024
163d6fe
anthropic: update pydantic (#26000)
ccurme Sep 4, 2024
51c6899
groq[major]: upgrade pydantic (#26036)
ccurme Sep 4, 2024
be7cd07
ollama[major]: upgrade pydantic (#26044)
ccurme Sep 4, 2024
f785cf0
pinecone[major]: Update to pydantic v2 (#26039)
baskaryan Sep 4, 2024
63ba12d
milvus: drop support for python 3.8 (#26051)
ccurme Sep 4, 2024
ed771f2
huggingface[major]: upgrade pydantic (#26048)
ccurme Sep 4, 2024
0a6c67c
nomic: drop support for python 3.8 (#26055)
ccurme Sep 4, 2024
efa10c8
core[minor]: Add message chunks to AnyMessage (#26057)
eyurtsev Sep 4, 2024
b924c61
qdrant[major]: drop support for python 3.8 (#26061)
ccurme Sep 4, 2024
1d2a503
standard-tests[patch]: add Ser/Des test
baskaryan Sep 4, 2024
40634d4
make
baskaryan Sep 4, 2024
e409a85
fmt
baskaryan Sep 4, 2024
c88b75c
fmt
baskaryan Sep 4, 2024
caf4ae3
fmt
baskaryan Sep 4, 2024
5557b86
fmt
baskaryan Sep 4, 2024
7f0dd4b
fmt
baskaryan Sep 4, 2024
88e9e6b
core,standard-tests[patch]: add Ser/Des test and update serialization…
baskaryan Sep 4, 2024
1fce554
poetry lock
baskaryan Sep 4, 2024
f9cafcb
pinecone[patch]: rm pydantic lint script (#26052)
baskaryan Sep 4, 2024
c72a762
cherry-pick 88e9e6b (#26063)
baskaryan Sep 4, 2024
9379613
langchain[major]: Upgrade langchain to be pydantic 2 compatible (#26050)
eyurtsev Sep 4, 2024
923ce84
robocorp[major]: upgrade pydantic (#26062)
ccurme Sep 4, 2024
567a4ce
box[major]: use pydantic v2 (#26067)
baskaryan Sep 4, 2024
fd1f3ca
exa[major]: use pydantic v2 (#26069)
baskaryan Sep 4, 2024
6e85350
voyageai[major]: upgrade pydantic (#26070)
ccurme Sep 4, 2024
c5d4dfe
prompty[major]: upgrade pydantic (#26056)
ccurme Sep 4, 2024
79c4631
couchbase[patch]: rm pydantic usage (#26068)
baskaryan Sep 4, 2024
e5aa0f9
mongo[major]: upgrade pydantic (#26053)
ccurme Sep 5, 2024
3c598d2
core[minor]: Add get_input_jsonschema, get_output_jsonschema, get_con…
eyurtsev Sep 5, 2024
e358846
core[patch]: add bedrock to load.mapping (#26094)
ccurme Sep 5, 2024
8da2ace
openai[patch]: update snapshots (#26098)
baskaryan Sep 5, 2024
a267da6
core[minor]: Add type overload for secret_from_env factory (#26091)
eyurtsev Sep 5, 2024
1c51e16
core[patch]: Fix issue with adapter utility for pydantic repr (#26099)
eyurtsev Sep 5, 2024
76564ed
openai[patch]: update configurable model dumps (#26101)
baskaryan Sep 5, 2024
1ad66e7
text-splitters[major]: update core dep + drop support for python 3.8 …
ccurme Sep 5, 2024
8516a03
langchain-community[major]: Upgrade community to pydantic 2 (#26011)
hwchase17 Sep 5, 2024
9e72226
core: reduce warnings (#26108)
ccurme Sep 5, 2024
a111098
community[patch]: Remove usage of deprecated pydantic config option (…
eyurtsev Sep 5, 2024
6e1b0d0
community[patch]: Skip unit test that depends on langchain-aws and fi…
eyurtsev Sep 5, 2024
0cc6584
community[patch]: Resolve more linting issues (#26115)
eyurtsev Sep 5, 2024
e02b093
community[patch]: Fix more issues (#26116)
eyurtsev Sep 5, 2024
5bbd536
core[patch]: call RunnableConfigurableFields.model_rebuild() (#26118)
ccurme Sep 5, 2024
1ecaffa
core[patch]: Fix regression in core (#26121)
eyurtsev Sep 5, 2024
f4e7cb3
core[patch]: Ignore pydantic deprecation warnings in validate_argumen…
eyurtsev Sep 5, 2024
6fd4ac4
core[patch]: Replace @validator with @model_validator in length based…
eyurtsev Sep 5, 2024
40b43b0
core[patch]: Remove some usage of .copy() in favor of .model_copy() (…
eyurtsev Sep 5, 2024
776d01d
infra: remove fail fast in v0.3rc branch (#26127)
efriis Sep 6, 2024
8a3a9c8
core[patch]: concrete prompt value test (#26128)
baskaryan Sep 6, 2024
b74546a
core[patch]: add google genai to serialization (#26154)
ccurme Sep 6, 2024
1b77063
openai[patch]: set protected namespaces on embeddings (#26155)
ccurme Sep 6, 2024
c27703a
core[patch]: resolve warnings (#26157)
ccurme Sep 6, 2024
81f8c2f
infra: add pydantic to min version testing (#26152)
efriis Sep 6, 2024
ae24f73
multiple: version bumps (#26159)
efriis Sep 6, 2024
6405e7f
infra: ignore docs build in v0.3rc branch (#25990)
efriis Sep 6, 2024
bccc546
v0.3 dev releases (#26096)
baskaryan Sep 6, 2024
b664b33
multiple: merge master into v0.3rc branch (#26163)
efriis Sep 6, 2024
6df9360
core[patch]: remove v1_repr (#26165)
baskaryan Sep 6, 2024
b2c8f2d
core[patch]: fix ChatPromptValueConcrete typing (#26106)
baskaryan Sep 6, 2024
b2ba4f4
core[patch]: fix deprecated pydantic code (#26161)
baskaryan Sep 6, 2024
61087b0
core[patch]: Fix changes to pydantic schema due to pydantic 2.8.2 -> …
eyurtsev Sep 6, 2024
15466d8
infra: core remove 3.8 (#26172)
efriis Sep 6, 2024
9f482f4
cherry langsmith cache fix (#26169)
baskaryan Sep 6, 2024
6e2a72c
core[patch]: Add missing cache for create_model (#26173)
eyurtsev Sep 6, 2024
0319ccd
core[patch]: only support pydantic >= 2.9 for now (#26176)
eyurtsev Sep 6, 2024
d9ba65c
core[patch]: pydantic 2.7-compatible AnyMessage (#26177)
baskaryan Sep 6, 2024
7a57b4f
core[patch]: Release 0.3.0dev4 (#26178)
baskaryan Sep 6, 2024
179eeea
anthropic[patch]: pydantic ^2.7.4 (#26191)
baskaryan Sep 8, 2024
b8fc82b
core[patch]: Fix _get_type in AnyMessage (#26223)
eyurtsev Sep 9, 2024
71268f7
standard-tests[patch]: resolve pydantic warnings (#26190)
baskaryan Sep 9, 2024
0f4a087
community[patch]: fix main unit tests (#26189)
baskaryan Sep 9, 2024
109ba54
langchain[patch]: fix pydantic 2 warnings (#26188)
baskaryan Sep 9, 2024
6c8d626
experimental[major]: upgrade pydantic (#26228)
ccurme Sep 9, 2024
2070d65
mistralai: release 0.2.0.dev1 (#26236)
ccurme Sep 9, 2024
d588ce1
community[patch]: fix extended deps (#26238)
baskaryan Sep 9, 2024
baad449
core[patch]: update docstrings (#26241)
baskaryan Sep 10, 2024
949127f
infra: rm check pydantic scripts (#26240)
baskaryan Sep 10, 2024
7842e2c
langchain[patch]: docstring update (#26242)
baskaryan Sep 10, 2024
438301d
community[patch]: update docstrings (#26243)
baskaryan Sep 10, 2024
f2f9187
community[patch]: fix community warnings 1 (#26239)
baskaryan Sep 10, 2024
9132516
core[patch]: add back ChatModel.callback_manager deprecation (#26244)
baskaryan Sep 10, 2024
e24259f
docs: update pydantic api ref templates (#26246)
baskaryan Sep 10, 2024
6208773
community[patch]: set protected namespaces on embeddings (#26156)
ccurme Sep 10, 2024
6df9178
groq[patch]: bump deps (#26261)
ccurme Sep 10, 2024
301be2d
core[patch]: de-beta astream_events (#26248)
baskaryan Sep 10, 2024
162d3ff
docs: fix language_models docstring (#26268)
baskaryan Sep 10, 2024
3a0c7c7
ollama[patch]: bump core dep and increment version to 0.2.0.dev1 (#26…
ccurme Sep 10, 2024
622cb7d
huggingface[patch]: update integration tests on v0.3rc branch (#26274)
ccurme Sep 10, 2024
7975c1f
core[patch]: Propagate module name to create model (#26267)
eyurtsev Sep 10, 2024
cecdc11
merge
baskaryan Sep 10, 2024
b904763
fmt
baskaryan Sep 10, 2024
13ba15b
Merge branch 'v0.3rc' into bagatur/09-10/v0.3_merge_master
baskaryan Sep 10, 2024
789f4b1
fmt
baskaryan Sep 10, 2024
ed412d8
core[patch]: Do not hard coded name for RunnableBranch (#26276)
eyurtsev Sep 10, 2024
bb83f1b
community[patch]: Resolve parse_obj (#26262)
eyurtsev Sep 10, 2024
c43c62b
merge msater (#26275)
baskaryan Sep 10, 2024
374bb40
community: Force opt-in for qa chains (#26278)
eyurtsev Sep 10, 2024
c627728
docs: migrate pydantic imports (#26266)
baskaryan Sep 10, 2024
bee8994
langchain,core: Deprecate pydantic.v1 shims (#26280)
eyurtsev Sep 10, 2024
fc08f24
huggingface[patch]: bump deps and increment version to 0.1.0.dev1 (#2…
ccurme Sep 10, 2024
287911a
community[patch]: Add protected_namespace=() to models that use model…
eyurtsev Sep 10, 2024
e2c8690
community[patch]: fix huggingface pydantic 2 init (#26286)
ccurme Sep 10, 2024
fce9322
core[patch]: use pydantic.v1 in old tracer code (#26290)
baskaryan Sep 10, 2024
aa9f247
core[patch]: manually coerce ToolMessage args (#26283)
baskaryan Sep 10, 2024
89c6cb6
mongo[patch]: release 0.2.0.dev1 (#26289)
ccurme Sep 10, 2024
a56812f
docs: replace gpt-3.5-turbo-0125 and -1106 with gpt-4o-mini (#26292)
baskaryan Sep 10, 2024
19bce9a
community: model config cassandradatabasetool (#26296)
efriis Sep 11, 2024
ec49d0d
infra: codespell on all pr branches (#26299)
efriis Sep 11, 2024
157d32b
prompty: fix core dep for min testing (#26300)
efriis Sep 11, 2024
2b15183
docs: run tool, query analysis how tos (#26306)
baskaryan Sep 11, 2024
d3499cc
langchain[patch]: Assign appropriate default for Optional/Any types (…
eyurtsev Sep 11, 2024
edcd348
huggingface,box[patch]: Add missing default None (#26323)
eyurtsev Sep 11, 2024
c417bbc
core[patch]: Add default None to StructuredTool func (#26324)
eyurtsev Sep 11, 2024
844955d
community[patch]: assign missed default (#26326)
eyurtsev Sep 11, 2024
da48c98
core[patch]: Add `type` literal to LLMResult (#26282)
eyurtsev Sep 11, 2024
934bc5b
docs: update integration notebooks handling of env variables (#26330)
eyurtsev Sep 11, 2024
b9575d5
docs: Handle existing env variables better (#26331)
eyurtsev Sep 11, 2024
8b7f5e1
core[patch]: Remove non relevant todos (#26332)
eyurtsev Sep 11, 2024
9f0968f
docs: v0.3rc docs (#26277)
efriis Sep 11, 2024
20f880a
infra: update api ref reqs (#26341)
baskaryan Sep 11, 2024
dc8adae
x
eyurtsev Sep 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 9 additions & 2 deletions .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"libs/experimental",
]

# for 0.3rc, we are ignoring core dependents
# in order to be able to get CI to pass for individual PRs.
IGNORE_CORE_DEPENDENTS = True

# ignored partners are removed from dependents
# but still run if directly edited
IGNORED_PARTNERS = [
Expand Down Expand Up @@ -102,9 +106,9 @@ def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]:
if dir_ == "libs/core":
return [
{"working-directory": dir_, "python-version": f"3.{v}"}
for v in range(8, 13)
for v in range(9, 13)
]
min_python = "3.8"
min_python = "3.9"
max_python = "3.12"

# custom logic for specific directories
Expand Down Expand Up @@ -184,6 +188,9 @@ def _get_configs_for_multi_dirs(
# for extended testing
found = False
for dir_ in LANGCHAIN_DIRS:
if dir_ == "libs/core" and IGNORE_CORE_DEPENDENTS:
dirs_to_run["extended-test"].add(dir_)
continue
if file.startswith(dir_):
found = True
if found:
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/check_prerelease_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# see if we're releasing an rc
version = toml_data["tool"]["poetry"]["version"]
releasing_rc = "rc" in version
releasing_rc = "rc" in version or "dev" in version

# if not, iterate through dependencies and make sure none allow prereleases
if not releasing_rc:
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/get_min_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"langchain",
"langchain-text-splitters",
"SQLAlchemy",
"pydantic",
]

SKIP_IF_PULL_REQUEST = ["langchain-core"]
Expand Down
114 changes: 0 additions & 114 deletions .github/workflows/_dependencies.yml

This file was deleted.

20 changes: 6 additions & 14 deletions .github/workflows/check_diffs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
strategy:
matrix:
job-configs: ${{ fromJson(needs.build.outputs.lint) }}
fail-fast: false
uses: ./.github/workflows/_lint.yml
with:
working-directory: ${{ matrix.job-configs.working-directory }}
Expand All @@ -59,6 +60,7 @@ jobs:
strategy:
matrix:
job-configs: ${{ fromJson(needs.build.outputs.test) }}
fail-fast: false
uses: ./.github/workflows/_test.yml
with:
working-directory: ${{ matrix.job-configs.working-directory }}
Expand All @@ -71,6 +73,7 @@ jobs:
strategy:
matrix:
job-configs: ${{ fromJson(needs.build.outputs.test-doc-imports) }}
fail-fast: false
uses: ./.github/workflows/_test_doc_imports.yml
secrets: inherit
with:
Expand All @@ -83,25 +86,13 @@ jobs:
strategy:
matrix:
job-configs: ${{ fromJson(needs.build.outputs.compile-integration-tests) }}
fail-fast: false
uses: ./.github/workflows/_compile_integration_test.yml
with:
working-directory: ${{ matrix.job-configs.working-directory }}
python-version: ${{ matrix.job-configs.python-version }}
secrets: inherit

dependencies:
name: cd ${{ matrix.job-configs.working-directory }}
needs: [ build ]
if: ${{ needs.build.outputs.dependencies != '[]' }}
strategy:
matrix:
job-configs: ${{ fromJson(needs.build.outputs.dependencies) }}
uses: ./.github/workflows/_dependencies.yml
with:
working-directory: ${{ matrix.job-configs.working-directory }}
python-version: ${{ matrix.job-configs.python-version }}
secrets: inherit

extended-tests:
name: "cd ${{ matrix.job-configs.working-directory }} / make extended_tests #${{ matrix.job-configs.python-version }}"
needs: [ build ]
Expand All @@ -110,6 +101,7 @@ jobs:
matrix:
# note different variable for extended test dirs
job-configs: ${{ fromJson(needs.build.outputs.extended-tests) }}
fail-fast: false
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -149,7 +141,7 @@ jobs:
echo "$STATUS" | grep 'nothing to commit, working tree clean'
ci_success:
name: "CI Success"
needs: [build, lint, test, compile-integration-tests, dependencies, extended-tests, test-doc-imports]
needs: [build, lint, test, compile-integration-tests, extended-tests, test-doc-imports]
if: |
always()
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
push:
branches: [master, v0.1]
pull_request:
branches: [master, v0.1]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.11"
working-directory:
- "libs/partners/openai"
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ api_docs_build:
API_PKG ?= text-splitters

api_docs_quick_preview:
poetry run pip install "pydantic<2"
poetry run python docs/api_reference/create_api_rst.py $(API_PKG)
cd docs/api_reference && poetry run make html
poetry run python docs/api_reference/scripts/custom_formatter.py docs/api_reference/_build/html/
Expand Down
3 changes: 2 additions & 1 deletion cookbook/code-analysis-deeplake.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"import os\n",
"from getpass import getpass\n",
"\n",
"os.environ[\"OPENAI_API_KEY\"] = getpass()\n",
"if \"OPENAI_API_KEY\" not in os.environ:\n",
" os.environ[\"OPENAI_API_KEY\"] = getpass()\n",
"# Please manually enter OpenAI Key"
]
},
Expand Down
4 changes: 2 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ install-py-deps:
python3 -m venv .venv
$(PYTHON) -m pip install --upgrade pip
$(PYTHON) -m pip install --upgrade uv
$(PYTHON) -m uv pip install -r vercel_requirements.txt
$(PYTHON) -m uv pip install --editable $(PARTNER_DEPS_LIST)
$(PYTHON) -m uv pip install --pre -r vercel_requirements.txt
$(PYTHON) -m uv pip install --pre --editable $(PARTNER_DEPS_LIST)

generate-files:
mkdir -p $(INTERMEDIATE_DIR)
Expand Down
6 changes: 3 additions & 3 deletions docs/api_reference/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
autodoc_pydantic>=1,<2
sphinx<=7
autodoc_pydantic>=2,<3
sphinx>=8,<9
myst-parser>=3
sphinx-autobuild>=2024
pydata-sphinx-theme>=0.15
Expand All @@ -8,4 +8,4 @@ myst-nb>=1.1.1
pyyaml
sphinx-design
sphinx-copybutton
beautifulsoup4
beautifulso[up4
5 changes: 4 additions & 1 deletion docs/api_reference/scripts/custom_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def process_toc_h3_elements(html_content: str) -> str:

# Process each element
for element in toc_h3_elements:
element = element.a.code.span
try:
element = element.a.code.span
except Exception:
continue
# Get the text content of the element
content = element.get_text()

Expand Down
2 changes: 1 addition & 1 deletion docs/api_reference/templates/pydantic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
:member-order: groupwise
:show-inheritance: True
:special-members: __call__
:exclude-members: construct, copy, dict, from_orm, parse_file, parse_obj, parse_raw, schema, schema_json, update_forward_refs, validate, json, is_lc_serializable, to_json, to_json_not_implemented, lc_secrets, lc_attributes, lc_id, get_lc_namespace
:exclude-members: construct, copy, dict, from_orm, parse_file, parse_obj, parse_raw, schema, schema_json, update_forward_refs, validate, json, is_lc_serializable, to_json, to_json_not_implemented, lc_secrets, lc_attributes, lc_id, get_lc_namespace, model_construct, model_copy, model_dump, model_dump_json, model_parametrized_name, model_post_init, model_rebuild, model_validate, model_validate_json, model_validate_strings, model_extra, model_fields_set, model_json_schema


{% block attributes %}
Expand Down
2 changes: 1 addition & 1 deletion docs/api_reference/templates/runnable_pydantic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
:member-order: groupwise
:show-inheritance: True
:special-members: __call__
:exclude-members: construct, copy, dict, from_orm, parse_file, parse_obj, parse_raw, schema, schema_json, update_forward_refs, validate, json, is_lc_serializable, to_json_not_implemented, lc_secrets, lc_attributes, lc_id, get_lc_namespace, astream_log, transform, atransform, get_output_schema, get_prompts, config_schema, map, pick, pipe, with_listeners, with_alisteners, with_config, with_fallbacks, with_types, with_retry, InputType, OutputType, config_specs, output_schema, get_input_schema, get_graph, get_name, input_schema, name, bind, assign, as_tool
:exclude-members: construct, copy, dict, from_orm, parse_file, parse_obj, parse_raw, schema, schema_json, update_forward_refs, validate, json, is_lc_serializable, to_json_not_implemented, lc_secrets, lc_attributes, lc_id, get_lc_namespace, astream_log, transform, atransform, get_output_schema, get_prompts, config_schema, map, pick, pipe, with_listeners, with_alisteners, with_config, with_fallbacks, with_types, with_retry, InputType, OutputType, config_specs, output_schema, get_input_schema, get_graph, get_name, input_schema, name, bind, assign, as_tool, get_config_jsonschema, get_input_jsonschema, get_output_jsonschema, model_construct, model_copy, model_dump, model_dump_json, model_parametrized_name, model_post_init, model_rebuild, model_validate, model_validate_json, model_validate_strings, to_json, model_extra, model_fields_set, model_json_schema

.. NOTE:: {{objname}} implements the standard :py:class:`Runnable Interface <langchain_core.runnables.base.Runnable>`. 🏃

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ Here's an example:
```python
from typing import Optional

from langchain_core.pydantic_v1 import BaseModel, Field
from pydantic import BaseModel, Field


class Joke(BaseModel):
Expand Down Expand Up @@ -1062,7 +1062,7 @@ a `tool_calls` field containing `args` that match the desired shape.
There are several acceptable formats you can use to bind tools to a model in LangChain. Here's one example:

```python
from langchain_core.pydantic_v1 import BaseModel, Field
from pydantic import BaseModel, Field
from langchain_openai import ChatOpenAI

class ResponseFormatter(BaseModel):
Expand Down
Loading
Loading