[PR #5562] chore(prebuilt): restructure tool node and tool injection logic #4524

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

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

State: closed
Merged: Yes


  • Cleaning up the underlying tool injection logic which is happening in multiple locations.
  • State was being injected into the ToolCall via Send in two places in create react agent and the logic doesn't belong there, the actual injection should be happening inside the ToolNode where there's awareness of what run time parameters the tool accepts.

Change is required to unblock: https://github.com/langchain-ai/langgraph/pull/5537

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5562 **State:** closed **Merged:** Yes --- * Cleaning up the underlying tool injection logic which is happening in multiple locations. * State was being injected into the ToolCall via Send in two places in create react agent and the logic doesn't belong there, the actual injection should be happening inside the ToolNode where there's awareness of what run time parameters the tool accepts. Change is required to unblock: https://github.com/langchain-ai/langgraph/pull/5537
yindo added the pull-request label 2026-02-20 17:50:20 -05:00
yindo closed this issue 2026-02-20 17:50:20 -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#4524