Skip to content

feat(core): add as_message_state and to_message_state utilities with tests #49472

feat(core): add as_message_state and to_message_state utilities with tests

feat(core): add as_message_state and to_message_state utilities with tests #49472

Triggered via pull request November 24, 2025 14:51
Status Failure
Total duration 2m 40s
Artifacts

check_diffs.yml

on: pull_request
Detect Changes & Set Matrix
9s
Detect Changes & Set Matrix
Matrix: ⚑ CodSpeed Benchmarks
Matrix: Compile Integration Tests
Matrix: Extended Tests
Matrix: lint
Matrix: test-pydantic
Matrix: test
βœ… CI Success
3s
βœ… CI Success
Fit to window
Zoom out
Zoom in

Annotations

62 errors
Ruff (EM102): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:21: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:11: TRY003 Avoid specifying long messages outside the exception class
Ruff (E501): libs/core/langchain_core/runnables/utils.py#L156
langchain_core/runnables/utils.py:156:89: E501 Line too long (95 > 88)
Ruff (UP006): libs/core/langchain_core/runnables/utils.py#L155
langchain_core/runnables/utils.py:155:35: UP006 Use `dict` instead of `Dict` for type annotation
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:54: TC004 Move import `langchain_core.messages.HumanMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:41: TC004 Move import `langchain_core.messages.BaseMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L40
langchain_core/runnables/utils.py:40:42: TC004 Move import `langchain_core.runnables.RunnableLambda` out of type-checking block. Import is used for more than type hinting.
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L30
langchain_core/runnables/utils.py:30:5: I001 Import block is un-sorted or un-formatted
Ruff (UP035): libs/core/langchain_core/runnables/utils.py#L14
langchain_core/runnables/utils.py:14:1: UP035 `typing.Dict` is deprecated, use `dict` instead
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L3
langchain_core/runnables/utils.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (EM102): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:21: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:11: TRY003 Avoid specifying long messages outside the exception class
Ruff (E501): libs/core/langchain_core/runnables/utils.py#L156
langchain_core/runnables/utils.py:156:89: E501 Line too long (95 > 88)
Ruff (UP006): libs/core/langchain_core/runnables/utils.py#L155
langchain_core/runnables/utils.py:155:35: UP006 Use `dict` instead of `Dict` for type annotation
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:54: TC004 Move import `langchain_core.messages.HumanMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:41: TC004 Move import `langchain_core.messages.BaseMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L40
langchain_core/runnables/utils.py:40:42: TC004 Move import `langchain_core.runnables.RunnableLambda` out of type-checking block. Import is used for more than type hinting.
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L30
langchain_core/runnables/utils.py:30:5: I001 Import block is un-sorted or un-formatted
Ruff (UP035): libs/core/langchain_core/runnables/utils.py#L14
langchain_core/runnables/utils.py:14:1: UP035 `typing.Dict` is deprecated, use `dict` instead
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L3
langchain_core/runnables/utils.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (EM102): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:21: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:11: TRY003 Avoid specifying long messages outside the exception class
Ruff (E501): libs/core/langchain_core/runnables/utils.py#L156
langchain_core/runnables/utils.py:156:89: E501 Line too long (95 > 88)
Ruff (UP006): libs/core/langchain_core/runnables/utils.py#L155
langchain_core/runnables/utils.py:155:35: UP006 Use `dict` instead of `Dict` for type annotation
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:54: TC004 Move import `langchain_core.messages.HumanMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:41: TC004 Move import `langchain_core.messages.BaseMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L40
langchain_core/runnables/utils.py:40:42: TC004 Move import `langchain_core.runnables.RunnableLambda` out of type-checking block. Import is used for more than type hinting.
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L30
langchain_core/runnables/utils.py:30:5: I001 Import block is un-sorted or un-formatted
Ruff (UP035): libs/core/langchain_core/runnables/utils.py#L14
langchain_core/runnables/utils.py:14:1: UP035 `typing.Dict` is deprecated, use `dict` instead
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L3
langchain_core/runnables/utils.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (EM102): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:21: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:11: TRY003 Avoid specifying long messages outside the exception class
Ruff (E501): libs/core/langchain_core/runnables/utils.py#L156
langchain_core/runnables/utils.py:156:89: E501 Line too long (95 > 88)
Ruff (UP006): libs/core/langchain_core/runnables/utils.py#L155
langchain_core/runnables/utils.py:155:35: UP006 Use `dict` instead of `Dict` for type annotation
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:54: TC004 Move import `langchain_core.messages.HumanMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:41: TC004 Move import `langchain_core.messages.BaseMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L40
langchain_core/runnables/utils.py:40:42: TC004 Move import `langchain_core.runnables.RunnableLambda` out of type-checking block. Import is used for more than type hinting.
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L30
langchain_core/runnables/utils.py:30:5: I001 Import block is un-sorted or un-formatted
Ruff (UP035): libs/core/langchain_core/runnables/utils.py#L14
langchain_core/runnables/utils.py:14:1: UP035 `typing.Dict` is deprecated, use `dict` instead
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L3
langchain_core/runnables/utils.py:3:1: I001 Import block is un-sorted or un-formatted
Ruff (EM102): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:21: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (TRY003): libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:11: TRY003 Avoid specifying long messages outside the exception class
Ruff (E501): libs/core/langchain_core/runnables/utils.py#L156
langchain_core/runnables/utils.py:156:89: E501 Line too long (95 > 88)
Ruff (UP006): libs/core/langchain_core/runnables/utils.py#L155
langchain_core/runnables/utils.py:155:35: UP006 Use `dict` instead of `Dict` for type annotation
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:54: TC004 Move import `langchain_core.messages.HumanMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L42
langchain_core/runnables/utils.py:42:41: TC004 Move import `langchain_core.messages.BaseMessage` out of type-checking block. Import is used for more than type hinting.
Ruff (TC004): libs/core/langchain_core/runnables/utils.py#L40
langchain_core/runnables/utils.py:40:42: TC004 Move import `langchain_core.runnables.RunnableLambda` out of type-checking block. Import is used for more than type hinting.
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L30
langchain_core/runnables/utils.py:30:5: I001 Import block is un-sorted or un-formatted
Ruff (UP035): libs/core/langchain_core/runnables/utils.py#L14
langchain_core/runnables/utils.py:14:1: UP035 `typing.Dict` is deprecated, use `dict` instead
Ruff (I001): libs/core/langchain_core/runnables/utils.py#L3
langchain_core/runnables/utils.py:3:1: I001 Import block is un-sorted or un-formatted
test (libs/core, 3.11) / Python 3.11
Process completed with exit code 2.
test (libs/core, 3.12) / Python 3.12
Process completed with exit code 2.
test (libs/core, 3.13) / Python 3.13
Process completed with exit code 2.
test-pydantic (libs/core, 2.12.0, 3.12) / Pydantic ~=2.12.0
Process completed with exit code 2.
test-pydantic (libs/core, 2.11.0, 3.12) / Pydantic ~=2.11.0
Process completed with exit code 2.
test-pydantic (libs/core, 2.7.0, 3.12) / Pydantic ~=2.7.0
Process completed with exit code 2.
test (libs/core, 3.14) / Python 3.14
Process completed with exit code 2.
test-pydantic (libs/core, 2.8.0, 3.12) / Pydantic ~=2.8.0
Process completed with exit code 2.
test-pydantic (libs/core, 2.10.0, 3.12) / Pydantic ~=2.10.0
Process completed with exit code 2.
test-pydantic (libs/core, 2.9.0, 3.12) / Pydantic ~=2.9.0
Process completed with exit code 2.
test (libs/core, 3.10) / Python 3.10
Process completed with exit code 2.
βœ… CI Success
Process completed with exit code 1.