fix(core): handle None content in ToolMessageChunk merge
by Mr-Neutr0n
·
Feb 06, 2026 at 19:30 UTC
·
scan-b1984cc9f35c4d6d
Get this automatically on every PR
Install the Axiomo GitHub App to get Signals as check runs and PR comments on every pull request.
Risk level: Medium (25%)
Ensure ToolMessageChunk merge handles None content correctly.
Added early return when content is None in tool.py.
Return ensures content is not coerced to 'None'.
Has 1 merged PRs to this repo. maintains 79 public repositories. unfamiliar with libs/core/langchain_core/messages/tool.py.
First-time contributor to this repository.
Review 1 file(s)
libs/core/langchain_core/messages/tool.py
+4
Source code
7
minutes to review
low
effort level
none
staleness risk
Standard review process
Some concerns to address before approval
Why is security_scan_clean missing? Consider adding this check.
Why is coverage_maintained missing? Consider adding this check.