[PR #5832] fix(prebuilt): Allows functions with no parameters to be used as tools in ToolNode #4672

Closed
opened 2026-02-20 17:50:34 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/5832

State: closed
Merged: No


Description:
Allows functions with no parameters to be used as tools in ToolNode.
Previously, if the args field in a ToolCall was missing or None, tool execution would fail.
This change ensures that args defaults to {} when not provided, enabling support for no-arg tools.

Issue:
Closes #5822

Dependencies:
None

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5832 **State:** closed **Merged:** No --- Description: Allows functions with no parameters to be used as tools in `ToolNode`. Previously, if the `args` field in a `ToolCall` was missing or `None`, tool execution would fail. This change ensures that `args` defaults to `{}` when not provided, enabling support for no-arg tools. Issue: Closes #5822 Dependencies: None
yindo added the pull-request label 2026-02-20 17:50:34 -05:00
yindo closed this issue 2026-02-20 17:50:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4672