chore: attribute package change versions (#33854)

Needed to disambiguate for within inherited docs
This commit is contained in:
Mason Daugherty
2025-11-06 16:57:30 -05:00
committed by GitHub
parent 9a09ed0659
commit d40e340479
30 changed files with 228 additions and 169 deletions

View File

@@ -50,7 +50,7 @@ class InputTokenDetails(TypedDict, total=False):
May also hold extra provider-specific keys.
!!! version-added "Added in version 0.3.9"
!!! version-added "Added in `langchain-core` 0.3.9"
"""
@@ -85,7 +85,7 @@ class OutputTokenDetails(TypedDict, total=False):
May also hold extra provider-specific keys.
!!! version-added "Added in version 0.3.9"
!!! version-added "Added in `langchain-core` 0.3.9"
"""
@@ -123,7 +123,7 @@ class UsageMetadata(TypedDict):
}
```
!!! warning "Behavior changed in 0.3.9"
!!! warning "Behavior changed in `langchain-core` 0.3.9"
Added `input_token_details` and `output_token_details`.
!!! note "LangSmith SDK"

View File

@@ -199,7 +199,7 @@ class BaseMessage(Serializable):
def content_blocks(self) -> list[types.ContentBlock]:
r"""Load content blocks from the message content.
!!! version-added "Added in version 1.0.0"
!!! version-added "Added in `langchain-core` 1.0.0"
"""
# Needed here to avoid circular import, as these classes import BaseMessages

View File

@@ -1101,7 +1101,7 @@ def convert_to_openai_messages(
# ]
```
!!! version-added "Added in version 0.3.11"
!!! version-added "Added in `langchain-core` 0.3.11"
""" # noqa: E501
if text_format not in {"string", "block"}:
@@ -1701,7 +1701,7 @@ def count_tokens_approximately(
Warning:
This function does not currently support counting image tokens.
!!! version-added "Added in version 0.3.46"
!!! version-added "Added in `langchain-core` 0.3.46"
"""
token_count = 0.0