The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs(anthropic): use named `betas` param in docstring example (#34300)
Mason Daugherty4aebfbad59a5
diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.pyindex d85559e531..29494212bc 100644--- a/libs/partners/anthropic/langchain_anthropic/chat_models.py+++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py@@ -904,18 +904,13 @@ class ChatAnthropic(BaseChatModel):See LangChain [docs](https://docs.langchain.com/oss/python/integrations/chat/anthropic#token-efficient-tool-use)for more detail.- ```python hl_lines="9"+ ```python hl_lines="6"from langchain_anthropic import ChatAnthropicfrom langchain_core.tools import toolmodel = ChatAnthropic(model="claude-sonnet-4-5-20250929",- temperature=0,- model_kwargs={- "extra_headers": {- "anthropic-beta": "token-efficient-tools-2025-02-19"- }- }+ betas=["token-efficient-tools-2025-02-19"])@tool