[PR #5833] fix(prebuilt): Allow functions with no parameters to be used as tools in ToolNode #4673

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/5833

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 https://github.com/langchain-ai/langgraph/issues/5722

Dependencies:
None

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5833 **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 https://github.com/langchain-ai/langgraph/issues/5722 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#4673