release(anthropic): 0.3.21 (#33147)

This commit is contained in:
ccurme
2025-09-29 15:56:28 -04:00
committed by GitHub
parent f9bae40475
commit ca9217c02d
3 changed files with 15 additions and 2 deletions

View File

@@ -1326,6 +1326,19 @@ class ChatAnthropic(BaseChatModel):
'id': 'toolu_01VdNgt1YV7kGfj9LFLm6HyQ', 'id': 'toolu_01VdNgt1YV7kGfj9LFLm6HyQ',
'type': 'tool_call'}] 'type': 'tool_call'}]
.. dropdown:: Memory tool
.. code-block:: python
from langchain_anthropic import ChatAnthropic
llm = ChatAnthropic(
model="claude-sonnet-4-5-20250929",
betas=["context-management-2025-06-27"],
)
llm_with_tools = llm.bind_tools([{"type": "memory_20250818", "name": "memory"}])
response = llm_with_tools.invoke("What are my interests?")
Response metadata Response metadata
.. code-block:: python .. code-block:: python

View File

@@ -12,7 +12,7 @@ dependencies = [
"pydantic>=2.7.4,<3.0.0", "pydantic>=2.7.4,<3.0.0",
] ]
name = "langchain-anthropic" name = "langchain-anthropic"
version = "0.3.20" version = "0.3.21"
description = "An integration package connecting Anthropic and LangChain" description = "An integration package connecting Anthropic and LangChain"
readme = "README.md" readme = "README.md"

View File

@@ -465,7 +465,7 @@ wheels = [
[[package]] [[package]]
name = "langchain-anthropic" name = "langchain-anthropic"
version = "0.3.20" version = "0.3.21"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "anthropic" }, { name = "anthropic" },