File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libs/langchain/src/agents Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ describe("ModelCallLimitMiddleware", () => {
112112 }
113113 ) ;
114114
115- describe . each ( [ "throw" /* , "end"*/ ] as const ) (
115+ describe . each ( [ "throw" , "end" ] as const ) (
116116 "thread limit with exit behavior %s" ,
117117 ( exitBehavior ) => {
118118 const checkpointer = new MemorySaver ( ) ;
@@ -126,7 +126,7 @@ describe("ModelCallLimitMiddleware", () => {
126126 exitBehavior,
127127 } ) ;
128128
129- it . only ( "should not throw if the thread limit is not exceeded" , async ( ) => {
129+ it ( "should not throw if the thread limit is not exceeded" , async ( ) => {
130130 const model = new FakeToolCallingChatModel ( {
131131 responses : [ toolCallMessage1 ] ,
132132 } ) ;
@@ -151,7 +151,6 @@ describe("ModelCallLimitMiddleware", () => {
151151 { messages : [ "Hello, world!" ] } ,
152152 config
153153 ) ;
154- console . log ( "result" , result ) ;
155154 await expect ( result . runModelCallCount ) . toBe ( 3 ) ;
156155 await expect ( result . threadModelCallCount ) . toBe ( 3 ) ;
157156 } else {
Original file line number Diff line number Diff line change @@ -499,6 +499,7 @@ function chainToolCallHandlers(
499499 * the error message.
500500 *
501501 * @param middleware list of middleware passed to the agent
502+ * @param state state of the agent
502503 * @returns single wrap function
503504 */
504505export function wrapToolCall (
You can’t perform that action at this time.
0 commit comments