Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
a4e135b
fix: use `.get()` on image URL in `ImagePromptValue.to_string()`
mdrxy Aug 15, 2025
9721684
Merge branch 'master' into wip-v1.0
mdrxy Aug 15, 2025
174e685
feat(anthropic): dynamic mapping of Max Tokens for Anthropic (#31946)
keenborder786 Aug 15, 2025
4dd9110
Merge branch 'master' into wip-v1.0
mdrxy Aug 15, 2025
8bd2403
fix: increase `max_tokens` limit to 64000 re: Anthropic dynamic tokens
mdrxy Aug 15, 2025
f0f1e28
Merge branch 'master' of github.com:langchain-ai/langchain into wip-v1.0
mdrxy Aug 19, 2025
dbc5a3b
fix(anthropic): update cassette for streaming benchmark (#32609)
ccurme Aug 19, 2025
6f058e7
fix(core): (v1) update BaseChatModel return type to AIMessage (#32626)
ccurme Aug 21, 2025
7a10861
Merge branch 'master' into wip-v1.0
ccurme Aug 25, 2025
7e9ae5d
feat(openai): (v1) delete `bind_functions` and remove `tool_calls` fr…
ccurme Aug 25, 2025
a2322f6
Merge branch 'master' into wip-v1.0
mdrxy Aug 26, 2025
2428815
feat: standard content, IDs, translators, & normalization (#32569)
mdrxy Aug 27, 2025
e4b69db
Merge branch 'master' into wip-v1.0
ccurme Aug 27, 2025
9a9263a
fix(langchain): (v1) delete unused chains (#32711)
ccurme Aug 27, 2025
cb4705d
chore: (v1) drop support for python 3.9 (#32712)
ccurme Aug 27, 2025
a47d993
release(core): 1.0.0dev0 (#32713)
ccurme Aug 27, 2025
72b66fc
release(core): 1.0.0a1 (#32715)
ccurme Aug 27, 2025
a80fa1b
chore(infra): drop anthropic from core test matrix (#32717)
ccurme Aug 27, 2025
9b57644
release: anthropic, openai 1.0.0a1 (#32723)
ccurme Aug 27, 2025
ddde1ef
fix: openai, anthropic (v1) fix core lower bound (#32724)
ccurme Aug 27, 2025
e09d90b
Merge branch 'master' into wip-v1.0
mdrxy Aug 28, 2025
925ad65
fix(core): typo in `content.py`
mdrxy Aug 28, 2025
f088fac
Merge branch 'master' into wip-v1.0
mdrxy Aug 30, 2025
b494a3c
chore(cli): drop python 3.9 support (#32761)
mdrxy Aug 30, 2025
830d1a2
Merge branch 'master' into wip-v1.0
mdrxy Aug 31, 2025
0f1afa1
chore(text-splitters): drop python 3.9 support (#32771)
mdrxy Aug 31, 2025
431e6d6
chore(standard-tests): drop python 3.9 (#32772)
mdrxy Aug 31, 2025
a5f92fd
fix: update some docstrings and typing
mdrxy Sep 2, 2025
a487412
chore: move `_convert_openai_format_to_data_block` from `langchain_v0…
mdrxy Sep 2, 2025
365d7c4
nit: OpenAI docstrings
mdrxy Sep 2, 2025
4f8cced
chore: move `convert_to_openai_data_block` and `convert_to_openai_ima…
mdrxy Sep 2, 2025
00def6d
rfc: remove unused `TypeGuard`s
mdrxy Sep 2, 2025
9a3ba71
fix: version equality CI check
mdrxy Sep 2, 2025
820e355
Merge branch 'master' into wip-v1.0
mdrxy Sep 2, 2025
5c8837e
fix some imports
mdrxy Sep 2, 2025
1237f94
Merge branch 'wip-v1.0' of github.com:langchain-ai/langchain into wip…
mdrxy Sep 2, 2025
25d5db8
fix: ci
mdrxy Sep 2, 2025
e15c412
feat(openai): (v1) update default `output_version` (#32674)
ccurme Sep 2, 2025
bf41a75
release(openai): 1.0.0a2 (#32790)
ccurme Sep 2, 2025
2cf5c52
release(core): 1.0.0a2 (#32792)
ccurme Sep 2, 2025
98e4e7d
Merge branch 'master' into wip-v1.0
ccurme Sep 2, 2025
a54f438
Merge branch 'master' into wip-v1.0
ccurme Sep 2, 2025
50b48fa
chore(openai): bump minimum core version (#32795)
ccurme Sep 2, 2025
f98f735
refactor(core): refactors for python 3.10+ (#32787)
cbornet Sep 3, 2025
083fbfb
chore(core): add utf-8 encoding to `Path` `read_text`/`write_text` (#…
cbornet Sep 8, 2025
0b8817c
Merge branch 'master' into wip-v1.0
mdrxy Sep 8, 2025
9e54c5f
Merge branch 'master' into wip-v1.0
mdrxy Sep 8, 2025
b1a105f
fix: huggingface lint
mdrxy Sep 8, 2025
8509efa
chore: remove erroneous pyversion specifiers
mdrxy Sep 8, 2025
3c189f0
chore(langchain): fix deprecation warnings (#32379)
cbornet Sep 8, 2025
188c015
Merge branch 'master' into wip-v1.0
mdrxy Sep 8, 2025
20979d5
Merge branch 'master' into wip-v1.0
mdrxy Sep 9, 2025
a48ace5
fix: lint
mdrxy Sep 9, 2025
544b08d
Merge branch 'master' into wip-v1.0
mdrxy Sep 10, 2025
fded6c6
chore(core): remove beta namespace and context api (#32850)
eyurtsev Sep 10, 2025
cb8598b
Merge branch 'master' into wip-v1.0
mdrxy Sep 11, 2025
311aa94
Merge branch 'master' into wip-v1.0
mdrxy Sep 11, 2025
ced9fc2
Merge branch 'master' into wip-v1.0
mdrxy Sep 11, 2025
8b1e254
fix(core): add `on_tool_error` to `_AstreamEventsCallbackHandler` (#3…
vbarda Sep 11, 2025
750a3ff
Merge branch 'master' into wip-v1.0
mdrxy Sep 11, 2025
5ef7d42
refactor(core): remove `example` attribute from `AIMessage` and `Huma…
mdrxy Sep 11, 2025
ffee515
fix lint
mdrxy Sep 11, 2025
3ef1165
Merge branch 'master' into wip-v1.0
mdrxy Sep 11, 2025
207ea46
Merge branch 'master' into wip-v1.0
mdrxy Sep 11, 2025
387d0f4
fix: lint
mdrxy Sep 11, 2025
7cc9312
fix: anthropic test since new dynamic max tokens
mdrxy Sep 11, 2025
9f14714
fix: anthropic tests (stale cassette from max dynamic tokens)
mdrxy Sep 12, 2025
67aa37b
Merge branch 'master' into wip-v1.0
mdrxy Sep 12, 2025
b88115f
feat(openai): (v1) support pdfs passed via url in standard format (#3…
ccurme Sep 12, 2025
e8ff6f4
Merge branch 'master' into wip-v1.0
mdrxy Sep 15, 2025
fc7a07d
.
mdrxy Sep 15, 2025
f25133c
fix: version equality
mdrxy Sep 15, 2025
76dfb7f
fix(cli): lint
mdrxy Sep 15, 2025
c7ebbe5
Merge branch 'master' into wip-v1.0
mdrxy Sep 15, 2025
1a3e9e0
chore(langchain): (v1) drop 3.9 support (#32970)
ccurme Sep 16, 2025
ebfb938
Merge branch 'master' into wip-v1.0
ccurme Sep 16, 2025
5800721
fix lint
mdrxy Sep 16, 2025
b6af0d2
residual lint
mdrxy Sep 16, 2025
f6ab75b
Merge branch 'master' into wip-v1.0
ccurme Sep 16, 2025
653dc77
release(standard-tests): 1.0.0a1 (#32978)
ccurme Sep 16, 2025
4283020
Merge branch 'master' into wip-v1.0
mdrxy Sep 17, 2025
25333d3
Merge branch 'master' into wip-v1.0
mdrxy Sep 17, 2025
1c8a01e
cli: remove unnecessary changes & bump lock
mdrxy Sep 17, 2025
cb3b5bf
refactor(core): remove Pydantic v2 deprecation warning in tools base …
mdrxy Sep 17, 2025
3f71efc
docs(core): update comments and docstrings
mdrxy Sep 17, 2025
ff632c1
fix(standard-tests): add filename to PDF file block (#32989)
mdrxy Sep 17, 2025
8f23bd1
fix: correct var name in comment
mdrxy Sep 17, 2025
fda8a71
docs: further comments for clarity
mdrxy Sep 17, 2025
16ec9bc
fix(core): add back `text` to data content block check
mdrxy Sep 17, 2025
59bb8bf
feat(core): make `is_openai_data_block` public and add filtering (#32…
mdrxy Sep 17, 2025
e2050e2
release(core): 1.0.0a3
mdrxy Sep 18, 2025
53ed770
Merge branch 'master' into wip-v1.0
mdrxy Sep 18, 2025
3e0d751
core: update `version.py`
mdrxy Sep 18, 2025
b6bd507
Merge branch 'master' into wip-v1.0
mdrxy Sep 18, 2025
8be4adc
fix(core): (v1) trace PDFs in v0 standard format (#33009)
ccurme Sep 18, 2025
f247270
feat(core): (v1) standard content for AWS (#32969)
ccurme Sep 18, 2025
13964ef
revert: fix(standard-tests): add filename to PDF file block (#33010)
ccurme Sep 18, 2025
82650ea
release(core): 1.0.0a4 (#33011)
ccurme Sep 18, 2025
c891a51
fix(infra): permit pre-releases in release workflow
ccurme Sep 18, 2025
b215ed5
chore(langchain): (v1) drop python 3.9 and relax dependency bounds (#…
ccurme Sep 18, 2025
fa4c302
fix(anthropic): fix web_fetch test
ccurme Sep 19, 2025
ea3b969
Merge branch 'master' into wip-v1.0
mdrxy Sep 21, 2025
6c90ba1
test: fix pydantic issue by bumping OAI-py
mdrxy Sep 21, 2025
0cc6f8b
Merge branch 'master' into wip-v1.0
mdrxy Sep 21, 2025
6081ba9
fix: pydantic openai (#33037)
mdrxy Sep 21, 2025
e75878b
Merge branch 'master' into wip-v1.0
mdrxy Sep 21, 2025
cfa9973
Merge branch 'master' into wip-v1.0
mdrxy Sep 22, 2025
f6cf4fc
Merge branch 'master' into wip-v1.0
mdrxy Sep 23, 2025
36f8c73
fix: core version equality check
mdrxy Sep 23, 2025
e7cdaad
Merge branch 'master' into wip-v1.0
mdrxy Sep 24, 2025
a4e1a54
Merge branch 'master' into wip-v1.0
mdrxy Sep 24, 2025
4ca523a
Merge branch 'master' into wip-v1.0
mdrxy Sep 24, 2025
ccfdce6
add note
mdrxy Sep 24, 2025
3515a54
Merge branch 'master' into wip-v1.0
mdrxy Sep 24, 2025
db8c2d3
Merge branch 'master' into wip-v1.0
mdrxy Sep 25, 2025
2f93566
feat: (v1) server tool call and result types (#33021)
ccurme Sep 25, 2025
00565d7
Merge branch 'master' into wip-v1.0
mdrxy Sep 25, 2025
f3f5b93
Merge branch 'master' into wip-v1.0
mdrxy Sep 25, 2025
ee94f95
Merge branch 'master' into wip-v1.0
mdrxy Sep 25, 2025
d15514d
integrations: delete deprecated items
mdrxy Sep 25, 2025
adc941d
Merge branch 'master' into wip-v1.0
mdrxy Sep 26, 2025
370010d
Merge branch 'master' into wip-v1.0
mdrxy Sep 26, 2025
fcd8fdd
revert: remove accidental symlink
mdrxy Sep 26, 2025
87e5be1
feat(core): parse `reasoning_content` from `additional_kwargs`
mdrxy Sep 26, 2025
54f3a6d
add note about `PlainTextContentBlock` and v0/v1 compat
mdrxy Sep 29, 2025
2af1cb6
update conversion docstrings
mdrxy Sep 29, 2025
77e52a6
add docstring
mdrxy Sep 29, 2025
4d39cf3
update docstring/comments
mdrxy Sep 29, 2025
0633974
conversion logic - add missing non-id cases
mdrxy Sep 29, 2025
ba663de
fix: anthropic and converse docstrings
mdrxy Sep 29, 2025
b83d45b
fix: add `continue` when guarding against v0 blocks
mdrxy Sep 29, 2025
790c4a8
Merge branch 'master' into wip-v1.0
mdrxy Sep 29, 2025
8f60946
more docstrings
mdrxy Sep 29, 2025
c20bd07
Merge branch 'master' into wip-v1.0
ccurme Sep 29, 2025
7f757cf
fix(core): extras handling, add test
mdrxy Sep 29, 2025
8926986
chore: standardize translator named params
mdrxy Sep 29, 2025
49704ff
Merge branch 'master' into wip-v1.0
ccurme Sep 30, 2025
06ddc57
release(core): 1.0.0a5 (#33158)
ccurme Sep 30, 2025
4d58100
fix(infra): temporarily skip pre-release checks for alpha branch (#33…
ccurme Sep 30, 2025
b6ecc0b
infra(fix): temporarily skip some release checks
ccurme Sep 30, 2025
ffaedf7
fix
ccurme Sep 30, 2025
0e404ad
🦍
ccurme Sep 30, 2025
16a2d97
revert changes to release workflow
ccurme Sep 30, 2025
8ba8a5e
release(anthropic): 1.0.0a2 (#33161)
ccurme Sep 30, 2025
b7223f4
release(openai): 1.0.0a3 (#33162)
ccurme Sep 30, 2025
06301c7
lift langgraph version cap, temp comment out optional deps for `langc…
mdrxy Sep 30, 2025
208e8e8
Merge branch 'master' into wip-v1.0
mdrxy Sep 30, 2025
c49d470
Merge branch 'master' into wip-v1.0
mdrxy Sep 30, 2025
e8f76e5
Merge branch 'master' into wip-v1.0
mdrxy Sep 30, 2025
87e1bbf
Merge branch 'master' into wip-v1.0
mdrxy Sep 30, 2025
e02acdf
Merge branch 'master' into wip-v1.0
ccurme Oct 1, 2025
fa0955c
fix(openai): fix tests on v1 branch (#33189)
ccurme Oct 1, 2025
9ad7f7a
Merge branch 'master' into wip-v1.0
mdrxy Oct 1, 2025
738dc79
feat(core): genai standard content (#32987)
mdrxy Oct 1, 2025
4ff83e9
fix locks/make filetype optional dep
mdrxy Oct 1, 2025
bb9b802
fix(ollama): handle `ImageContentBlock`
mdrxy Oct 1, 2025
2d29959
Merge branch 'master' into wip-v1.0
mdrxy Oct 2, 2025
bea249b
release(core): 1.0.0a6 (#33201)
mdrxy Oct 2, 2025
b2188ae
for now, don't use factory on reasoning additional kwarg extraction (…
mdrxy Oct 2, 2025
2b0c1da
feat(ollama): standard content (#33202)
mdrxy Oct 2, 2025
80a091b
Merge branch 'master' into wip-v1.0
ccurme Oct 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,24 +136,24 @@ def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]:
if job == "codspeed":
py_versions = ["3.12"] # 3.13 is not yet supported
elif dir_ == "libs/core":
py_versions = ["3.9", "3.10", "3.11", "3.12", "3.13"]
py_versions = ["3.10", "3.11", "3.12", "3.13"]
# custom logic for specific directories

elif dir_ in PY_312_MAX_PACKAGES:
py_versions = ["3.9", "3.12"]
py_versions = ["3.10", "3.12"]

elif dir_ == "libs/langchain" and job == "extended-tests":
py_versions = ["3.9", "3.13"]
py_versions = ["3.10", "3.13"]
elif dir_ == "libs/langchain_v1":
py_versions = ["3.10", "3.13"]
elif dir_ in {"libs/cli"}:
py_versions = ["3.10", "3.13"]

elif dir_ == ".":
# unable to install with 3.13 because tokenizers doesn't support 3.13 yet
py_versions = ["3.9", "3.12"]
py_versions = ["3.10", "3.12"]
else:
py_versions = ["3.9", "3.13"]
py_versions = ["3.10", "3.13"]

return [{"working-directory": dir_, "python-version": py_v} for py_v in py_versions]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ jobs:
git ls-remote --tags origin "langchain-${{ matrix.partner }}*" \
| awk '{print $2}' \
| sed 's|refs/tags/||' \
| grep -E '[0-9]+\.[0-9]+\.[0-9]+$' \
| grep -E '[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z]+[0-9]+)?$' \
| sort -Vr \
| head -n 1
)"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/scheduled_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Runs daily. Can also be triggered manually for immediate updates.

name: '⏰ Scheduled Integration Tests'
run-name: "Run Integration Tests - ${{ inputs.working-directory-force || 'all libs' }} (Python ${{ inputs.python-version-force || '3.9, 3.11' }})"
run-name: "Run Integration Tests - ${{ inputs.working-directory-force || 'all libs' }} (Python ${{ inputs.python-version-force || '3.10, 3.13' }})"

on:
workflow_dispatch:
Expand All @@ -15,7 +15,7 @@ on:
description: "From which folder this pipeline executes - defaults to all in matrix - example value: libs/partners/anthropic"
python-version-force:
type: string
description: "Python version to use - defaults to 3.9 and 3.11 in matrix - example value: 3.9"
description: "Python version to use - defaults to 3.10 and 3.13 in matrix - example value: 3.11"
schedule:
- cron: '0 13 * * *' # Runs daily at 1PM UTC (9AM EDT/6AM PDT)

Expand Down Expand Up @@ -46,9 +46,9 @@ jobs:
PYTHON_VERSION_FORCE: ${{ github.event.inputs.python-version-force || '' }}
run: |
# echo "matrix=..." where matrix is a json formatted str with keys python-version and working-directory
# python-version should default to 3.9 and 3.11, but is overridden to [PYTHON_VERSION_FORCE] if set
# python-version should default to 3.10 and 3.13, but is overridden to [PYTHON_VERSION_FORCE] if set
# working-directory should default to DEFAULT_LIBS, but is overridden to [WORKING_DIRECTORY_FORCE] if set
python_version='["3.9", "3.11"]'
python_version='["3.10", "3.13"]'
working_directory="$DEFAULT_LIBS"
if [ -n "$PYTHON_VERSION_FORCE" ]; then
python_version="[\"$PYTHON_VERSION_FORCE\"]"
Expand Down
34 changes: 17 additions & 17 deletions docs/docs/how_to/multimodal_inputs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "1fcf7b27-1cc3-420a-b920-0420b5892e20",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -102,7 +102,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand Down Expand Up @@ -133,7 +133,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "99d27f8f-ae78-48bc-9bf2-3cef35213ec7",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -163,7 +163,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand All @@ -176,7 +176,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "325fb4ca",
"metadata": {},
"outputs": [
Expand All @@ -198,7 +198,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand Down Expand Up @@ -234,7 +234,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "6c1455a9-699a-4702-a7e0-7f6eaec76a21",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -284,7 +284,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand Down Expand Up @@ -312,7 +312,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "55e1d937-3b22-4deb-b9f0-9e688f0609dc",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -342,7 +342,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand Down Expand Up @@ -417,7 +417,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand All @@ -443,7 +443,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "83593b9d-a8d3-4c99-9dac-64e0a9d397cb",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -488,13 +488,13 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())\n",
"print(response.text)\n",
"response.usage_metadata"
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "9bbf578e-794a-4dc0-a469-78c876ccd4a3",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -530,7 +530,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message, response, next_message])\n",
"print(response.text())\n",
"print(response.text)\n",
"response.usage_metadata"
]
},
Expand Down Expand Up @@ -600,7 +600,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "ae076c9b-ff8f-461d-9349-250f396c9a25",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -641,7 +641,7 @@
" ],\n",
"}\n",
"response = llm.invoke([message])\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/how_to/multimodal_prompts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "5df2e558-321d-4cf7-994e-2815ac37e704",
"metadata": {},
"outputs": [
Expand All @@ -75,7 +75,7 @@
"\n",
"chain = prompt | llm\n",
"response = chain.invoke({\"image_url\": url})\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand Down Expand Up @@ -117,7 +117,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "25e4829e-0073-49a8-9669-9f43e5778383",
"metadata": {},
"outputs": [
Expand All @@ -144,7 +144,7 @@
" \"cache_type\": \"ephemeral\",\n",
" }\n",
")\n",
"print(response.text())"
"print(response.text)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/integrations/chat/anthropic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "30a0af36-2327-4b1d-9ba5-e47cb72db0be",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -1629,7 +1629,7 @@
"response = llm_with_tools.invoke(\n",
" \"There's a syntax error in my primes.py file. Can you help me fix it?\"\n",
")\n",
"print(response.text())\n",
"print(response.text)\n",
"response.tool_calls"
]
},
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/integrations/chat/bedrock.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@
"id": "0ef05abb-9c04-4dc3-995e-f857779644d5",
"metadata": {},
"source": [
"You can filter to text using the [.text()](https://python.langchain.com/api_reference/core/messages/langchain_core.messages.ai.AIMessage.html#langchain_core.messages.ai.AIMessage.text) method on the output:"
"You can filter to text using the [.text](https://python.langchain.com/api_reference/core/messages/langchain_core.messages.ai.AIMessage.html#langchain_core.messages.ai.AIMessage.text) property on the output:"
]
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "2a4e743f-ea7d-4e5a-9b12-f9992362de8b",
"metadata": {},
"outputs": [
Expand All @@ -262,7 +262,7 @@
],
"source": [
"for chunk in llm.stream(messages):\n",
" print(chunk.text(), end=\"|\")"
" print(chunk.text, end=\"|\")"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/integrations/chat/litellm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "c5fac0e9-05a4-4fc1-a3b3-e5bbb24b971b",
"metadata": {
"colab": {
Expand All @@ -286,7 +286,7 @@
],
"source": [
"async for token in llm.astream(\"Hello, please explain how antibiotics work\"):\n",
" print(token.text(), end=\"\")"
" print(token.text, end=\"\")"
]
},
{
Expand Down
Loading
Loading