anthropic: support built-in tools, improve docs (#30274)

- Support features from recent update:
https://www.anthropic.com/news/token-saving-updates (mostly adding
support for built-in tools in `bind_tools`
- Add documentation around prompt caching, token-efficient tool use, and
built-in tools.
This commit is contained in:
ccurme
2025-03-14 12:18:50 -04:00
committed by GitHub
parent f27e2d7ce7
commit 226f29bc96
7 changed files with 629 additions and 30 deletions

View File

@@ -7,8 +7,8 @@ authors = []
license = { text = "MIT" }
requires-python = "<4.0,>=3.9"
dependencies = [
"anthropic<1,>=0.47.0",
"langchain-core<1.0.0,>=0.3.41",
"anthropic<1,>=0.49.0",
"langchain-core<1.0.0,>=0.3.44",
"pydantic<3.0.0,>=2.7.4",
]
name = "langchain-anthropic"