mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
release(anthropic): 0.3.21 (#33147)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
2
libs/partners/anthropic/uv.lock
generated
2
libs/partners/anthropic/uv.lock
generated
@@ -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" },
|
||||||
|
|||||||
Reference in New Issue
Block a user