Avatar for the langchain-ai user
langchain-ai
langchain
BlogDocsChangelog

feat(langchain): add `interrupt_mode` and `when` predicate to `HumanInTheLoopMiddleware`

#37579
Comparing
sr/hitl-refactor
(
d68bba4
) with
master
(
8cead6b
)
CodSpeed Performance Gauge
0%
Untouched
2
Skipped
13

Benchmarks

15 total
test_create_agent_instantiation
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
0%
4.1 ms*4.1 ms
test_create_agent_instantiation_with_middleware
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
0%
15.2 ms*15.2 ms
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
Skipped
54.7 ms*
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
Skipped
671.9 ms*
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.4 s*
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
Skipped
814.6 ms*
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.3 s*
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.2 s*
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.4 s*
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.4 s*
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.6 s*
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
Skipped
375.6 ms*
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.5 s*
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.3 s*
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
Skipped
418.5 ms*

Commits

Click on a commit to change the comparison range
Base
master
8cead6b
-0.07%
feat(langchain): add `interrupt_mode` and `when` predicate to `HumanInTheLoopMiddleware`
c142ba8
6 hours ago
by sydney-runkle
+0.04%
fix(langchain): use `ToolCallRequest` for `when` predicate, fix lint and mypy
b2eb490
6 hours ago
by sydney-runkle
-0.04%
refactor(langchain): scope PR to batch HITL with `when` predicate only
4bc86a1
5 hours ago
by sydney-runkle
-0.05%
refactor(langchain): restore typed signatures and extract `_should_interrupt` helper
d68bba4
1 hour ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs