File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
examples/src/createAgent/dynamicTools Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ const selectToolsMiddleware = createMiddleware({
7373 ? // only give me the most relevant tool
7474 await selectTopKBySimilarity ( last . content as string , 1 )
7575 : fullCatalog . slice ( 0 , 5 ) ;
76- return { ...request , tools : active } ;
76+ return { ...request , tools : active . map ( ( t ) => t . name ) } ;
7777 } ,
7878} ) ;
7979
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const vcsToolGate = createMiddleware({
3737 const provider = runtime . context . vcsProvider . toLowerCase ( ) ;
3838 const active =
3939 provider === "gitlab" ? [ gitlabCreateIssue ] : [ githubCreateIssue ] ;
40- return { ...request , tools : active } ;
40+ return { ...request , tools : active . map ( ( t ) => t . name ) } ;
4141 } ,
4242} ) ;
4343
You can’t perform that action at this time.
0 commit comments