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

fix(langchain): land final answer in last AIMessage for `TodoListMiddleware`

#37643
Comparing
nh/todo-middleware-loop-contract
(
8587b09
) with
master
(
d08245f
)
CodSpeed Performance Gauge
0%
Untouched
2
Skipped
13

Benchmarks

15 total
test_create_agent_instantiation_with_middleware
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
0%
15.2 ms15.2 ms
test_create_agent_instantiation
libs/langchain_v1/tests/benchmarks/test_create_agent.py
CodSpeed Performance Gauge
0%
4.1 ms4.1 ms
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
d08245f
-0.09%
fix(langchain): emit final answer after the final `write_todos` call in `TodoListMiddleware`
3499538
2 hours ago
by nick-hollon-lc
+0.08%
chore(langchain): satisfy lint and type checks on eval framework
8a2ac1d
1 hour ago
by nick-hollon-lc
-0.03%
fix(ci): close shell-injection vector in middleware evals workflow
8587b09
1 hour ago
by nick-hollon-lc
© 2026 CodSpeed Technology
Home Terms Privacy Docs