feat(core): add as_message_state and to_message_state utilities with tests #49472
Annotations
10 errors
|
π Analyze Package Code with Linters:
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
|
|
π Analyze Package Code with Linters:
libs/core/langchain_core/runnables/utils.py#L185
langchain_core/runnables/utils.py:185:11: TRY003 Avoid specifying long messages outside the exception class
|
|
π Analyze Package Code with Linters:
libs/core/langchain_core/runnables/utils.py#L156
langchain_core/runnables/utils.py:156:89: E501 Line too long (95 > 88)
|
|
π Analyze Package Code with Linters:
libs/core/langchain_core/runnables/utils.py#L155
langchain_core/runnables/utils.py:155:35: UP006 Use `dict` instead of `Dict` for type annotation
|
|
π Analyze Package Code with Linters:
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.
|
|
π Analyze Package Code with Linters:
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.
|
|
π Analyze Package Code with Linters:
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.
|
|
π Analyze Package Code with Linters:
libs/core/langchain_core/runnables/utils.py#L30
langchain_core/runnables/utils.py:30:5: I001 Import block is un-sorted or un-formatted
|
|
π Analyze Package Code with Linters:
libs/core/langchain_core/runnables/utils.py#L14
langchain_core/runnables/utils.py:14:1: UP035 `typing.Dict` is deprecated, use `dict` instead
|
|
π Analyze Package Code with Linters:
libs/core/langchain_core/runnables/utils.py#L3
langchain_core/runnables/utils.py:3:1: I001 Import block is un-sorted or un-formatted
|
Loading