langchain-ai
langchain
BlogDocsChangelog

fix(core): remove orphaned ToolMessages in trim_messages

#33268
Comparing
20ns:fix/trim-messages-invalid-history
(
6fb2297
) with
master
(
7f5be6b
)
CodSpeed Performance Gauge
0%
Untouched
13
Dropped
21

Benchmarks

Failed

test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py::TestOpenAIStandard
Missing
CodSpeed Performance Gauge
N/A
961.2 ms*N/A
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py::TestOpenAIResponses
Missing
CodSpeed Performance Gauge
N/A
9.9 ms*N/A
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py::TestOpenAIStandard
Missing
CodSpeed Performance Gauge
N/A
1.7 s*N/A
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py::TestOpenAIStandard
Missing
CodSpeed Performance Gauge
N/A
961 ms*N/A
test_init_time
libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py::TestOpenAIStandard
Missing
CodSpeed Performance Gauge
N/A
9.8 ms*N/A
test_stream_time
libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py::TestOpenAIResponses
Missing
CodSpeed Performance Gauge
N/A
875.4 ms*N/A
test_init_time
libs/partners/anthropic/tests/unit_tests/test_standard.py::TestAnthropicStandard
Missing
CodSpeed Performance Gauge
N/A
780.5 µs*N/A
test_stream_time
libs/partners/anthropic/tests/integration_tests/test_standard.py::TestAnthropicStandard
Missing
CodSpeed Performance Gauge
N/A
35.7 ms*N/A
test_init_time_with_client
libs/partners/anthropic/tests/unit_tests/test_standard.py
Missing
CodSpeed Performance Gauge
N/A
2.3 ms*N/A
test_qdrant_vectorstore_init_time
libs/partners/qdrant/tests/unit_tests/test_standard.py
Missing
CodSpeed Performance Gauge
N/A
228.5 ms*N/A
test_create_chat_prompt_init_time
libs/partners/prompty/tests/unit_tests/test_standard.py
Missing
CodSpeed Performance Gauge
N/A
312.7 µs*N/A
test_init_time
libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py::TestPerplexityStandard
Missing
CodSpeed Performance Gauge
N/A
835.6 ms*N/A
test_init_time
libs/partners/groq/tests/unit_tests/test_standard.py::TestGroqStandard
Missing
CodSpeed Performance Gauge
N/A
1.6 s*N/A
test_init_time
libs/partners/xai/tests/unit_tests/test_chat_models_standard.py::TestXAIStandard
Missing
CodSpeed Performance Gauge
N/A
3.3 s*N/A
test_init_time
libs/partners/ollama/tests/unit_tests/test_chat_models.py::TestChatOllama
Missing
CodSpeed Performance Gauge
N/A
1.7 s*N/A
test_init_time
libs/partners/deepseek/tests/unit_tests/test_chat_models.py::TestChatDeepSeekUnit
Missing
CodSpeed Performance Gauge
N/A
1.6 s*N/A
test_init_time
libs/partners/mistralai/tests/unit_tests/test_standard.py::TestMistralStandard
Missing
CodSpeed Performance Gauge
N/A
9.8 ms*N/A
test_init_time
libs/partners/fireworks/tests/unit_tests/test_standard.py::TestFireworksStandard
Missing
CodSpeed Performance Gauge
N/A
6.6 s*N/A
test_chroma_init_time
libs/partners/chroma/tests/unit_tests/test_standard.py
Missing
CodSpeed Performance Gauge
N/A
58.6 ms*N/A
test_exa_retriever_init_time
libs/partners/exa/tests/unit_tests/test_standard.py
Missing
CodSpeed Performance Gauge
N/A
338.5 µs*N/A
test_nomic_embeddings_init_time
libs/partners/nomic/tests/unit_tests/test_standard.py
Missing
CodSpeed Performance Gauge
N/A
1.6 ms*N/A

Passed

test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+2%
529.1 ms518.6 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+2%
444.2 ms437.6 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
515.1 ms508 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
579.9 ms576.2 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
169.2 ms168.3 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
273.1 ms271.7 ms
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py
CodSpeed Performance Gauge
0%
25.7 ms25.6 ms
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
213.2 ms212.6 ms
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
474.5 ms473.7 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
419.8 ms419.7 ms
test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
603.8 ms609.9 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-1%
472.9 ms479.8 ms
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
-2%
496.6 ms508.7 ms

Commits

Click on a commit to change the comparison range
Base
master
7f5be6b
+0.21%
fix(core): drop orphaned tool messages when trimming
6fb2297
3 days ago
by 20ns
© 2025 CodSpeed Technology
Home Terms Privacy Docs