Skip to content

Commit eaa6dcc

Browse files
mdrxykeenborder786casparbccurmecbornet
authored
release: v1.0.0 (#32567)
Co-authored-by: Mohammad Mohtashim <[email protected]> Co-authored-by: Caspar Broekhuizen <[email protected]> Co-authored-by: ccurme <[email protected]> Co-authored-by: Christophe Bornet <[email protected]> Co-authored-by: Eugene Yurtsev <[email protected]> Co-authored-by: Sadra Barikbin <[email protected]> Co-authored-by: Vadym Barda <[email protected]>
1 parent d7cce2f commit eaa6dcc

File tree

188 files changed

+23784
-17619
lines changed

Some content is hidden

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

188 files changed

+23784
-17619
lines changed

.github/scripts/check_diff.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,24 +136,24 @@ def _get_configs_for_single_dir(job: str, dir_: str) -> List[Dict[str, str]]:
136136
if job == "codspeed":
137137
py_versions = ["3.12"] # 3.13 is not yet supported
138138
elif dir_ == "libs/core":
139-
py_versions = ["3.9", "3.10", "3.11", "3.12", "3.13"]
139+
py_versions = ["3.10", "3.11", "3.12", "3.13"]
140140
# custom logic for specific directories
141141

142142
elif dir_ in PY_312_MAX_PACKAGES:
143-
py_versions = ["3.9", "3.12"]
143+
py_versions = ["3.10", "3.12"]
144144

145145
elif dir_ == "libs/langchain" and job == "extended-tests":
146-
py_versions = ["3.9", "3.13"]
146+
py_versions = ["3.10", "3.13"]
147147
elif dir_ == "libs/langchain_v1":
148148
py_versions = ["3.10", "3.13"]
149149
elif dir_ in {"libs/cli"}:
150150
py_versions = ["3.10", "3.13"]
151151

152152
elif dir_ == ".":
153153
# unable to install with 3.13 because tokenizers doesn't support 3.13 yet
154-
py_versions = ["3.9", "3.12"]
154+
py_versions = ["3.10", "3.12"]
155155
else:
156-
py_versions = ["3.9", "3.13"]
156+
py_versions = ["3.10", "3.13"]
157157

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

.github/workflows/_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ jobs:
431431
git ls-remote --tags origin "langchain-${{ matrix.partner }}*" \
432432
| awk '{print $2}' \
433433
| sed 's|refs/tags/||' \
434-
| grep -E '[0-9]+\.[0-9]+\.[0-9]+$' \
434+
| grep -E '[0-9]+\.[0-9]+\.[0-9]+([a-zA-Z]+[0-9]+)?$' \
435435
| sort -Vr \
436436
| head -n 1
437437
)"

.github/workflows/scheduled_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Runs daily. Can also be triggered manually for immediate updates.
66

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

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

@@ -46,9 +46,9 @@ jobs:
4646
PYTHON_VERSION_FORCE: ${{ github.event.inputs.python-version-force || '' }}
4747
run: |
4848
# echo "matrix=..." where matrix is a json formatted str with keys python-version and working-directory
49-
# python-version should default to 3.9 and 3.11, but is overridden to [PYTHON_VERSION_FORCE] if set
49+
# python-version should default to 3.10 and 3.13, but is overridden to [PYTHON_VERSION_FORCE] if set
5050
# working-directory should default to DEFAULT_LIBS, but is overridden to [WORKING_DIRECTORY_FORCE] if set
51-
python_version='["3.9", "3.11"]'
51+
python_version='["3.10", "3.13"]'
5252
working_directory="$DEFAULT_LIBS"
5353
if [ -n "$PYTHON_VERSION_FORCE" ]; then
5454
python_version="[\"$PYTHON_VERSION_FORCE\"]"

docs/docs/how_to/multimodal_inputs.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
{
6060
"cell_type": "code",
61-
"execution_count": 10,
61+
"execution_count": null,
6262
"id": "1fcf7b27-1cc3-420a-b920-0420b5892e20",
6363
"metadata": {},
6464
"outputs": [
@@ -102,7 +102,7 @@
102102
" ],\n",
103103
"}\n",
104104
"response = llm.invoke([message])\n",
105-
"print(response.text())"
105+
"print(response.text)"
106106
]
107107
},
108108
{
@@ -133,7 +133,7 @@
133133
},
134134
{
135135
"cell_type": "code",
136-
"execution_count": 2,
136+
"execution_count": null,
137137
"id": "99d27f8f-ae78-48bc-9bf2-3cef35213ec7",
138138
"metadata": {},
139139
"outputs": [
@@ -163,7 +163,7 @@
163163
" ],\n",
164164
"}\n",
165165
"response = llm.invoke([message])\n",
166-
"print(response.text())"
166+
"print(response.text)"
167167
]
168168
},
169169
{
@@ -176,7 +176,7 @@
176176
},
177177
{
178178
"cell_type": "code",
179-
"execution_count": 4,
179+
"execution_count": null,
180180
"id": "325fb4ca",
181181
"metadata": {},
182182
"outputs": [
@@ -198,7 +198,7 @@
198198
" ],\n",
199199
"}\n",
200200
"response = llm.invoke([message])\n",
201-
"print(response.text())"
201+
"print(response.text)"
202202
]
203203
},
204204
{
@@ -234,7 +234,7 @@
234234
},
235235
{
236236
"cell_type": "code",
237-
"execution_count": 3,
237+
"execution_count": null,
238238
"id": "6c1455a9-699a-4702-a7e0-7f6eaec76a21",
239239
"metadata": {},
240240
"outputs": [
@@ -284,7 +284,7 @@
284284
" ],\n",
285285
"}\n",
286286
"response = llm.invoke([message])\n",
287-
"print(response.text())"
287+
"print(response.text)"
288288
]
289289
},
290290
{
@@ -312,7 +312,7 @@
312312
},
313313
{
314314
"cell_type": "code",
315-
"execution_count": 4,
315+
"execution_count": null,
316316
"id": "55e1d937-3b22-4deb-b9f0-9e688f0609dc",
317317
"metadata": {},
318318
"outputs": [
@@ -342,7 +342,7 @@
342342
" ],\n",
343343
"}\n",
344344
"response = llm.invoke([message])\n",
345-
"print(response.text())"
345+
"print(response.text)"
346346
]
347347
},
348348
{
@@ -417,7 +417,7 @@
417417
" ],\n",
418418
"}\n",
419419
"response = llm.invoke([message])\n",
420-
"print(response.text())"
420+
"print(response.text)"
421421
]
422422
},
423423
{
@@ -443,7 +443,7 @@
443443
},
444444
{
445445
"cell_type": "code",
446-
"execution_count": 2,
446+
"execution_count": null,
447447
"id": "83593b9d-a8d3-4c99-9dac-64e0a9d397cb",
448448
"metadata": {},
449449
"outputs": [
@@ -488,13 +488,13 @@
488488
" ],\n",
489489
"}\n",
490490
"response = llm.invoke([message])\n",
491-
"print(response.text())\n",
491+
"print(response.text)\n",
492492
"response.usage_metadata"
493493
]
494494
},
495495
{
496496
"cell_type": "code",
497-
"execution_count": 3,
497+
"execution_count": null,
498498
"id": "9bbf578e-794a-4dc0-a469-78c876ccd4a3",
499499
"metadata": {},
500500
"outputs": [
@@ -530,7 +530,7 @@
530530
" ],\n",
531531
"}\n",
532532
"response = llm.invoke([message, response, next_message])\n",
533-
"print(response.text())\n",
533+
"print(response.text)\n",
534534
"response.usage_metadata"
535535
]
536536
},
@@ -600,7 +600,7 @@
600600
},
601601
{
602602
"cell_type": "code",
603-
"execution_count": 5,
603+
"execution_count": null,
604604
"id": "ae076c9b-ff8f-461d-9349-250f396c9a25",
605605
"metadata": {},
606606
"outputs": [
@@ -641,7 +641,7 @@
641641
" ],\n",
642642
"}\n",
643643
"response = llm.invoke([message])\n",
644-
"print(response.text())"
644+
"print(response.text)"
645645
]
646646
},
647647
{

docs/docs/how_to/multimodal_prompts.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
{
5656
"cell_type": "code",
57-
"execution_count": 2,
57+
"execution_count": null,
5858
"id": "5df2e558-321d-4cf7-994e-2815ac37e704",
5959
"metadata": {},
6060
"outputs": [
@@ -75,7 +75,7 @@
7575
"\n",
7676
"chain = prompt | llm\n",
7777
"response = chain.invoke({\"image_url\": url})\n",
78-
"print(response.text())"
78+
"print(response.text)"
7979
]
8080
},
8181
{
@@ -117,7 +117,7 @@
117117
},
118118
{
119119
"cell_type": "code",
120-
"execution_count": 4,
120+
"execution_count": null,
121121
"id": "25e4829e-0073-49a8-9669-9f43e5778383",
122122
"metadata": {},
123123
"outputs": [
@@ -144,7 +144,7 @@
144144
" \"cache_type\": \"ephemeral\",\n",
145145
" }\n",
146146
")\n",
147-
"print(response.text())"
147+
"print(response.text)"
148148
]
149149
},
150150
{

docs/docs/integrations/chat/anthropic.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@
15931593
},
15941594
{
15951595
"cell_type": "code",
1596-
"execution_count": 1,
1596+
"execution_count": null,
15971597
"id": "30a0af36-2327-4b1d-9ba5-e47cb72db0be",
15981598
"metadata": {},
15991599
"outputs": [
@@ -1629,7 +1629,7 @@
16291629
"response = llm_with_tools.invoke(\n",
16301630
" \"There's a syntax error in my primes.py file. Can you help me fix it?\"\n",
16311631
")\n",
1632-
"print(response.text())\n",
1632+
"print(response.text)\n",
16331633
"response.tool_calls"
16341634
]
16351635
},

docs/docs/integrations/chat/bedrock.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@
243243
"id": "0ef05abb-9c04-4dc3-995e-f857779644d5",
244244
"metadata": {},
245245
"source": [
246-
"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:"
246+
"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:"
247247
]
248248
},
249249
{
250250
"cell_type": "code",
251-
"execution_count": 5,
251+
"execution_count": null,
252252
"id": "2a4e743f-ea7d-4e5a-9b12-f9992362de8b",
253253
"metadata": {},
254254
"outputs": [
@@ -262,7 +262,7 @@
262262
],
263263
"source": [
264264
"for chunk in llm.stream(messages):\n",
265-
" print(chunk.text(), end=\"|\")"
265+
" print(chunk.text, end=\"|\")"
266266
]
267267
},
268268
{

docs/docs/integrations/chat/litellm.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
},
262262
{
263263
"cell_type": "code",
264-
"execution_count": 5,
264+
"execution_count": null,
265265
"id": "c5fac0e9-05a4-4fc1-a3b3-e5bbb24b971b",
266266
"metadata": {
267267
"colab": {
@@ -286,7 +286,7 @@
286286
],
287287
"source": [
288288
"async for token in llm.astream(\"Hello, please explain how antibiotics work\"):\n",
289-
" print(token.text(), end=\"\")"
289+
" print(token.text, end=\"\")"
290290
]
291291
},
292292
{

0 commit comments

Comments
 (0)