docs(anthropic): update documentation links (#32938)

**Description:**
This PR updated links to the latest Anthropic documentation. Changes
include revised links for model overview, tool usage, web search tool,
text editor tool, and more.

**Issue:**
N/A

**Dependencies:**
None

**Twitter handle:**
N/A
This commit is contained in:
Youngho Kim
2025-09-15 10:38:51 +09:00
committed by GitHub
parent 6487a7e2e5
commit 4619a2727f
4 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@
"\n", "\n",
"This notebook provides a quick overview for getting started with Anthropic [chat models](/docs/concepts/chat_models). For detailed documentation of all ChatAnthropic features and configurations head to the [API reference](https://python.langchain.com/api_reference/anthropic/chat_models/langchain_anthropic.chat_models.ChatAnthropic.html).\n", "This notebook provides a quick overview for getting started with Anthropic [chat models](/docs/concepts/chat_models). For detailed documentation of all ChatAnthropic features and configurations head to the [API reference](https://python.langchain.com/api_reference/anthropic/chat_models/langchain_anthropic.chat_models.ChatAnthropic.html).\n",
"\n", "\n",
"Anthropic has several chat models. You can find information about their latest models and their costs, context windows, and supported input types in the [Anthropic docs](https://docs.anthropic.com/en/docs/models-overview).\n", "Anthropic has several chat models. You can find information about their latest models and their costs, context windows, and supported input types in the [Anthropic docs](https://docs.anthropic.com/en/docs/about-claude/models/overview).\n",
"\n", "\n",
"\n", "\n",
":::info AWS Bedrock and Google VertexAI\n", ":::info AWS Bedrock and Google VertexAI\n",
@@ -840,7 +840,7 @@
"source": [ "source": [
"## Token-efficient tool use\n", "## Token-efficient tool use\n",
"\n", "\n",
"Anthropic supports a (beta) [token-efficient tool use](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/token-efficient-tool-use) feature. To use it, specify the relevant beta-headers when instantiating the model." "Anthropic supports a (beta) [token-efficient tool use](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/token-efficient-tool-use) feature. To use it, specify the relevant beta-headers when instantiating the model."
] ]
}, },
{ {
@@ -1198,7 +1198,7 @@
"source": [ "source": [
"## Built-in tools\n", "## Built-in tools\n",
"\n", "\n",
"Anthropic supports a variety of [built-in tools](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/text-editor-tool), which can be bound to the model in the [usual way](/docs/how_to/tool_calling/). Claude will generate tool calls adhering to its internal schema for the tool:" "Anthropic supports a variety of [built-in tools](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool), which can be bound to the model in the [usual way](/docs/how_to/tool_calling/). Claude will generate tool calls adhering to its internal schema for the tool:"
] ]
}, },
{ {
@@ -1208,7 +1208,7 @@
"source": [ "source": [
"### Web search\n", "### Web search\n",
"\n", "\n",
"Claude can use a [web search tool](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/web-search-tool) to run searches and ground its responses with citations." "Claude can use a [web search tool](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/web-search-tool) to run searches and ground its responses with citations."
] ]
}, },
{ {
@@ -1522,7 +1522,7 @@
"source": [ "source": [
"### Text editor\n", "### Text editor\n",
"\n", "\n",
"The text editor tool can be used to view and modify text files. See docs [here](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/text-editor-tool) for details." "The text editor tool can be used to view and modify text files. See docs [here](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool) for details."
] ]
}, },
{ {

View File

@@ -119,7 +119,7 @@ export default function ChatModelTabs(props) {
value: "anthropic", value: "anthropic",
label: "Anthropic", label: "Anthropic",
model: "claude-3-7-sonnet-20250219", model: "claude-3-7-sonnet-20250219",
comment: "# Note: Model versions may become outdated. Check https://docs.anthropic.com/en/docs/models-overview for latest versions", comment: "# Note: Model versions may become outdated. Check https://docs.anthropic.com/en/docs/about-claude/models/overview for latest versions",
apiKeyName: "ANTHROPIC_API_KEY", apiKeyName: "ANTHROPIC_API_KEY",
packageName: "langchain[anthropic]", packageName: "langchain[anthropic]",
}, },

View File

@@ -502,7 +502,7 @@ def _handle_anthropic_bad_request(e: anthropic.BadRequestError) -> None:
class ChatAnthropic(BaseChatModel): class ChatAnthropic(BaseChatModel):
"""Anthropic chat models. """Anthropic chat models.
See `Anthropic's docs <https://docs.anthropic.com/en/docs/models-overview>`__ for a See `Anthropic's docs <https://docs.anthropic.com/en/docs/about-claude/models/overview>`__ for a
list of the latest models. list of the latest models.
Setup: Setup:

View File

@@ -462,7 +462,7 @@ def test_tool_use() -> None:
assert tool_call["id"] is not None assert tool_call["id"] is not None
# Testing token-efficient tools # Testing token-efficient tools
# https://docs.anthropic.com/en/docs/build-with-claude/tool-use/token-efficient-tool-use # https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/token-efficient-tool-use
assert gathered.usage_metadata assert gathered.usage_metadata
assert response.usage_metadata assert response.usage_metadata
assert ( assert (