mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-22 02:50:31 +00:00
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:
@@ -19,7 +19,7 @@
|
||||
"\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",
|
||||
"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",
|
||||
":::info AWS Bedrock and Google VertexAI\n",
|
||||
@@ -840,7 +840,7 @@
|
||||
"source": [
|
||||
"## Token-efficient tool use\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": [
|
||||
"## Built-in tools\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": [
|
||||
"### Web search\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": [
|
||||
"### Text editor\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."
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@@ -119,7 +119,7 @@ export default function ChatModelTabs(props) {
|
||||
value: "anthropic",
|
||||
label: "Anthropic",
|
||||
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",
|
||||
packageName: "langchain[anthropic]",
|
||||
},
|
||||
|
@@ -502,7 +502,7 @@ def _handle_anthropic_bad_request(e: anthropic.BadRequestError) -> None:
|
||||
class ChatAnthropic(BaseChatModel):
|
||||
"""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.
|
||||
|
||||
Setup:
|
||||
|
@@ -462,7 +462,7 @@ def test_tool_use() -> None:
|
||||
assert tool_call["id"] is not None
|
||||
|
||||
# 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 response.usage_metadata
|
||||
assert (
|
||||
|
Reference in New Issue
Block a user