Skip to content

Commit 0649a20

Browse files
add docs
1 parent f39cebc commit 0649a20

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

libs/providers/langchain-anthropic/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -525,25 +525,21 @@ Available commands:
525525
- Restart the session: `{ restart: true }`
526526

527527
```typescript
528-
import {
529-
ChatAnthropic,
530-
tools,
531-
type Bash20250124Command,
532-
} from "@langchain/anthropic";
528+
import { ChatAnthropic, tools } from "@langchain/anthropic";
533529
import { execSync } from "child_process";
534530

535531
const llm = new ChatAnthropic({
536532
model: "claude-sonnet-4-5-20250929",
537533
});
538534

539535
const bash = tools.bash_20250124({
540-
execute: async (args: Bash20250124Command) => {
536+
execute: async (args) => {
541537
if (args.restart) {
542538
// Reset session state
543539
return "Bash session restarted";
544540
}
545541
try {
546-
const output = execSync(args.command!, {
542+
const output = execSync(args.command, {
547543
encoding: "utf-8",
548544
timeout: 30000,
549545
});

0 commit comments

Comments
 (0)