Skip to content

Commit 022ebfa

Browse files
cr
1 parent 24a4ce1 commit 022ebfa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/langchain/src/agents/middleware/tests/modelCallLimit.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

libs/langchain/src/agents/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
*/
504505
export function wrapToolCall(

0 commit comments

Comments
 (0)