Skip to content

Commit 23837dd

Browse files
cr
1 parent ff44bbf commit 23837dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/providers/langchain-anthropic/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ For more information, see [Anthropic's Memory Tool documentation](https://docs.a
139139
The web search tool (`webSearch_20250305`) gives Claude direct access to real-time web content, allowing it to answer questions with up-to-date information beyond its knowledge cutoff. Claude automatically cites sources from search results as part of its answer.
140140

141141
```typescript
142-
import { ChatAnthropic, webSearch_20250305 } from "@langchain/anthropic";
142+
import { ChatAnthropic, tools } from "@langchain/anthropic";
143143

144144
const llm = new ChatAnthropic({
145145
model: "claude-sonnet-4-5-20250929",
146146
});
147147

148148
// Basic usage
149149
const response = await llm.invoke("What is the weather in NYC?", {
150-
tools: [webSearch_20250305()],
150+
tools: [tools.webSearch_20250305()],
151151
});
152152
```
153153

@@ -156,7 +156,7 @@ The web search tool supports several configuration options:
156156
```typescript
157157
const response = await llm.invoke("Latest news about AI?", {
158158
tools: [
159-
webSearch_20250305({
159+
tools.webSearch_20250305({
160160
// Maximum number of times the tool can be used in the API request
161161
maxUses: 5,
162162
// Only include results from these domains

0 commit comments

Comments
 (0)