File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
libs/providers/langchain-anthropic Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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" ;
533529import { execSync } from " child_process" ;
534530
535531const llm = new ChatAnthropic ({
536532 model: " claude-sonnet-4-5-20250929" ,
537533});
538534
539535const 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 });
You can’t perform that action at this time.
0 commit comments