Skip to content

Commit 49268e4

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feat/add-manage-user-context-docs
2 parents 5f71f22 + 3651233 commit 49268e4

File tree

8 files changed

+58
-42
lines changed

8 files changed

+58
-42
lines changed

reference/python/docs/langchain/agents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<!-- (`group_by_category orders `AgentState` (a class) before functions) -->
33
::: langchain.agents
44
options:
5+
summary: false
56
group_by_category: false
67
parameter_headings: true
78
members:

reference/python/docs/langchain/embeddings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<!-- (`group_by_category orders `Embeddings` (a class) before functions) -->
33
::: langchain.embeddings
44
options:
5+
summary: false
56
group_by_category: false
67
members:
78
- init_embeddings

reference/python/docs/langchain/models.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
::: langchain.chat_models
44
options:
55
parameter_headings: true
6+
summary: false
67
members:
78
- init_chat_model
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
::: langchain_core.documents.base.BaseMedia
2-
::: langchain_core.documents.base.Blob
1+
::: langchain_core.documents
2+
options:
3+
members: []
34
::: langchain_core.documents.base.Document
5+
::: langchain_core.documents.base.Blob
6+
::: langchain_core.documents.base.BaseMedia

reference/python/docs/langchain_core/language_models.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<!-- `members: []` in order to show module docstring -->
22
::: langchain_core.language_models
3-
options:
4-
members: []
5-
::: langchain_core.language_models.chat_models
63
options:
74
parameter_headings: true
85
show_inheritance_diagram: true

reference/python/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ plugins:
228228
# Preload modules before collecting documentation to enable cross-references
229229
- langchain
230230
- langchain_core
231+
- langgraph
231232
- langsmith
232233

233234
# Generate objects.inv file for this site to enable cross-referencing from other sites

reference/python/uv.lock

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/oss/python/migrate/langchain-v1.mdx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,9 @@ Existing functionality outside the focus of standard interfaces and agents has b
936936

937937
Methods, functions, and other objects that were already deprecated and slated for removal in 1.0 have been deleted. Check the [deprecation notices](https://python.langchain.com/docs/versions/migrating_chains) from previous versions for replacement APIs.
938938

939-
### `.text()` is now a property
939+
### Text property
940940

941-
Use of the `.text()` method on message objects should drop the parentheses:
941+
Use of the `.text()` method on message objects should drop the parentheses, as it is now a property:
942942

943943
```python
944944
# Property access
@@ -948,4 +948,16 @@ text = response.text
948948
text = response.text()
949949
```
950950

951-
Existing usage patterns (i.e., `.text()`) will continue to function but now emit a warning.
951+
Existing usage patterns (i.e., `.text()`) will continue to function but now emit a warning. The method form will be removed in v2.
952+
953+
### `example` parameter removed from `AIMessage`
954+
955+
The `example` parameter has been removed from @[`AIMessage`] objects. We recommend migrating to use `additional_kwargs` for passing extra metadata as needed.
956+
957+
## Minor changes
958+
959+
- `AIMessageChunk` objects now include a `chunk_position` attribute with position `'last'` to indicate the final chunk in a stream. This allows for clearer handling of streamed messages. If the chunk is not the final one, `chunk_position` will be `None`.
960+
- `LanguageModelOutputVar` is now typed to @[`AIMessage`] instead of @[`BaseMessage`].
961+
- The logic for merging message chunks (`AIMessageChunk.add`) has been updated with more sophisticated selection handling for the final id for the merged chunk. It prioritizes provider-assigned IDs over LangChain-generated IDs.
962+
- We now open files with `utf-8` encoding by default.
963+
- Standard tests now use multimodal content blocks.

0 commit comments

Comments
 (0)