core: fix tool_call function #35734
Annotations
5 errors and 1 warning
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L216
langchain_core/messages/tool.py:216:31: Q000 Single quotes found but double quotes preferred
|
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L220
langchain_core/messages/tool.py:220:34: EM101 Exception must not use a string literal, assign to variable first
|
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L222
langchain_core/messages/tool.py:222:13: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
|
Analysing the code with our lint:
libs/core/langchain_core/messages/tool.py#L222
langchain_core/messages/tool.py:222:30: EM101 Exception must not use a string literal, assign to variable first
|
Analysing the code with our lint
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading