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

fix(core): context preservation in shielded async callbacks

#32163Merged
Comparing
copilot/fix-31398
(
2174a80
) with
master
(
ca1a3fb
)
CodSpeed Performance Gauge
+2%
Untouched
13
Skipped
21

Benchmarks

34 total
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+9%
210.7 ms192.7 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+5%
651.5 ms618 ms
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+4%
512.1 ms490.1 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+3%
280 ms271.7 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+3%
481.7 ms467.6 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+3%
556 ms540.5 ms
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+2%
532.6 ms521 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+2%
449.2 ms440.8 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+2%
519.7 ms510.2 ms
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
550.1 ms543 ms
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
629.6 ms625.3 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
177 ms177.3 ms
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
-9%
22.2 ms24.4 ms
test_create_chat_prompt_init_time
libs/partners/prompty/tests/unit_tests/test_standard.py
Skipped
311.9 µs*
test_exa_retriever_init_time
libs/partners/exa/tests/unit_tests/test_standard.py
Skipped
325.3 µs*
test_nomic_embeddings_init_time
libs/partners/nomic/tests/unit_tests/test_standard.py
Skipped
1.5 ms*
test_qdrant_vectorstore_init_time
libs/partners/qdrant/tests/unit_tests/test_standard.py
Skipped
224.2 ms*
test_init_time
libs/partners/xai/tests/unit_tests/test_chat_models_standard.py::TestXAIStandard
Skipped
3.3 s*
test_init_time
libs/partners/deepseek/tests/unit_tests/test_chat_models.py::TestChatDeepSeekUnit
Skipped
1.6 s*
test_init_time
libs/partners/groq/tests/unit_tests/test_standard.py::TestGroqStandard
Skipped
1.6 s*
test_init_time
libs/partners/fireworks/tests/unit_tests/test_standard.py::TestFireworksStandard
Skipped
6.6 s*
test_init_time
libs/partners/mistralai/tests/unit_tests/test_standard.py::TestMistralStandard
Skipped
9.1 ms*
test_stream_time
libs/partners/anthropic/tests/integration_tests/test_standard.py::TestAnthropicStandard
Skipped
34.8 ms*
test_init_time_with_client
libs/partners/anthropic/tests/unit_tests/test_standard.py
Skipped
2.3 ms*
test_init_time
libs/partners/anthropic/tests/unit_tests/test_standard.py::TestAnthropicStandard
Skipped
764 µs*

Commits

Click on a commit to change the comparison range
Base
master
ca1a3fb
+0.02%
Fix context preservation in shielded async callbacks
f365865
10 months ago
by Copilot
-0.02%
lint
0e0b1f3
10 months ago
by mdrxy
+0.07%
fix: add type ignore for asyncio.create_task to support Python 3.9 and 3.10
0a07cde
10 months ago
by mdrxy
+1.17%
Merge branch 'master' into copilot/fix-31398
da536ab
10 months ago
by mdrxy
-1.18%
unused-ignore
a5cecf7
10 months ago
by mdrxy
-0.09%
Merge branch 'master' into copilot/fix-31398
8959773
9 months ago
by mdrxy
+1.08%
Merge branch 'master' into copilot/fix-31398
5124b97
8 months ago
by mdrxy
+0.94%
Merge branch 'master' into copilot/fix-31398
2174a80
6 months ago
by mdrxy
© 2026 CodSpeed Technology
Home Terms Privacy Docs