Avatar for the langchain-ai user
langchain-ai
langchain
Instrumentation
Wall Time
BlogDocsChangelog

fix(core): fix `BaseMessage` `.text()` filtering out blocks with text

#32829Closed
Comparing
olieydt:patch-1
(
d972ca3
) with
master
(
bc91a48
)
CodSpeed Performance Gauge
+1%
Untouched
13

Benchmarks

Passed

test_import_time[InMemoryVectorStore]
libs/core/tests/benchmarks/test_imports.py::test_import_time[InMemoryVectorStore]
CodSpeed Performance Gauge
+2%
245.8 ms241 ms
test_import_time[RunnableLambda]
libs/core/tests/benchmarks/test_imports.py::test_import_time[RunnableLambda]
CodSpeed Performance Gauge
+1%
234.2 ms230.8 ms
test_import_time[tool]
libs/core/tests/benchmarks/test_imports.py::test_import_time[tool]
CodSpeed Performance Gauge
+1%
475.2 ms468.6 ms
test_import_time[PydanticOutputParser]
libs/core/tests/benchmarks/test_imports.py::test_import_time[PydanticOutputParser]
CodSpeed Performance Gauge
+1%
369.5 ms364.8 ms
test_import_time[InMemoryRateLimiter]
libs/core/tests/benchmarks/test_imports.py::test_import_time[InMemoryRateLimiter]
CodSpeed Performance Gauge
+1%
166.7 ms164.9 ms
test_import_time[CallbackManager]
libs/core/tests/benchmarks/test_imports.py::test_import_time[CallbackManager]
CodSpeed Performance Gauge
0%
421.3 ms419.5 ms
test_import_time[LangChainTracer]
libs/core/tests/benchmarks/test_imports.py::test_import_time[LangChainTracer]
CodSpeed Performance Gauge
0%
411.7 ms409.9 ms
test_import_time[ChatPromptTemplate]
libs/core/tests/benchmarks/test_imports.py::test_import_time[ChatPromptTemplate]
CodSpeed Performance Gauge
0%
416.1 ms414.4 ms
test_async_callbacks_in_sync
libs/core/tests/benchmarks/test_async_callbacks.py::test_async_callbacks_in_sync
CodSpeed Performance Gauge
0%
24 ms23.9 ms
test_import_time[BaseChatModel]
libs/core/tests/benchmarks/test_imports.py::test_import_time[BaseChatModel]
CodSpeed Performance Gauge
0%
492.6 ms491.6 ms
test_import_time[HumanMessage]
libs/core/tests/benchmarks/test_imports.py::test_import_time[HumanMessage]
CodSpeed Performance Gauge
0%
211.1 ms210.9 ms
test_import_time[Runnable]
libs/core/tests/benchmarks/test_imports.py::test_import_time[Runnable]
CodSpeed Performance Gauge
0%
232.6 ms232.6 ms
test_import_time[Document]
libs/core/tests/benchmarks/test_imports.py::test_import_time[Document]
CodSpeed Performance Gauge
0%
209.3 ms209.5 ms

Commits

Click on a commit to change the comparison range
Base
master
bc91a48
-1.89%
fix(core): fix BaseMessage .text() filtering out blocks with text BaseMessage .text() filters for type "text" when content is a list of dict. Concatenated messages can result in type != "text" but containing a text prop. This results in calling .text() on the message but receiving "". If a text prop is present, include it.
910f420
6 days ago
by olieydt
+2.58%
fixing lint
d972ca3
6 days ago
by olieydt
© 2025 CodSpeed Technology
Home Terms Privacy Docs