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

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

#37579Merged
Comparing
sr/hitl-refactor
(
7058f85
) with
master
(
aef86c4
)
CodSpeed Performance Gauge
0%
Untouched
2
Skipped
13

Benchmarks

13 total
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
Skipped
675.5 ms*
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.5 s*
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.4 s*
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.3 s*
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
Skipped
815.9 ms*
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.2 s*
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.3 s*
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.4 s*
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.5 s*
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
Skipped
377.5 ms*
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
Skipped
1.7 s*
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
Skipped
59 ms*
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
Skipped
419.7 ms*

Commits

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