From 5470d7621c298ff50489eec6daffe558955ca0ef Mon Sep 17 00:00:00 2001 From: Sydney Runkle Date: Tue, 16 Sep 2025 10:16:29 -0400 Subject: [PATCH] remove comment --- .../langchain/agents/middleware/human_in_the_loop.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py b/libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py index 98fdaa352f7..365d36ceb38 100644 --- a/libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py +++ b/libs/langchain_v1/langchain/agents/middleware/human_in_the_loop.py @@ -111,7 +111,7 @@ class HumanInTheLoopMiddleware(AgentMiddleware): """Initialize the human in the loop middleware. Args: - tool_configs: The tool interrupt configs to use for the middleware. + tool_configs: Mapping of tool name to interrupt config. message_prefix: The message prefix to use when constructing interrupt content. """ super().__init__() @@ -181,9 +181,6 @@ class HumanInTheLoopMiddleware(AgentMiddleware): responses: list[HumanResponse] = interrupt(interrupt_requests) - # we might want to map responses to tool call ids explicitly instead of assuming order - # Right now this will fail if there's not a corresponding response for each tool call - # Which we want to block on anyways but can do more gracefully for response in responses: try: tool_call = interrupt_tool_calls[response["tool_call_id"]]