Skip to content

Commit 461bc40

Browse files
cr
1 parent 29ea813 commit 461bc40

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
@@ -143,15 +143,15 @@ For more information, see [Anthropic's Memory Tool documentation](https://docs.a
143143
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.
144144

145145
```typescript
146-
import { ChatAnthropic, webSearch_20250305 } from "@langchain/anthropic";
146+
import { ChatAnthropic, tools } from "@langchain/anthropic";
147147

148148
const llm = new ChatAnthropic({
149149
model: "claude-sonnet-4-5-20250929",
150150
});
151151

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

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

0 commit comments

Comments
 (0)