[PR #222] [CLOSED] Utility to create tool invocation #1315

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/222
Author: @hinthornw
Created: 3/20/2024
Status: Closed

Base: mainHead: wfh/tool_helper


📝 Commits (1)

  • 74df6e5 Utility to create tool invocation

📊 Changes

2 files changed (+32 additions, -2 deletions)

View changed files

📝 langgraph/prebuilt/__init__.py (+4 -1)
📝 langgraph/prebuilt/tool_executor.py (+28 -1)

📄 Description

Context: our readme and examples have a lot of message.additional_kwargs["function"] stuff that make me always scratch my head - it's a lot of superfluous code that make the tool invocation interface less friendly. Would be nice to be able to just go from message -> tool invocation.

TODO: Add docstring, etc.

Open to other names, class methods, and other suggestions.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/222 **Author:** [@hinthornw](https://github.com/hinthornw) **Created:** 3/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `wfh/tool_helper` --- ### 📝 Commits (1) - [`74df6e5`](https://github.com/langchain-ai/langgraph/commit/74df6e55bf263e014081b493c06b5de206668752) Utility to create tool invocation ### 📊 Changes **2 files changed** (+32 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/prebuilt/__init__.py` (+4 -1) 📝 `langgraph/prebuilt/tool_executor.py` (+28 -1) </details> ### 📄 Description Context: our readme and examples have a lot of `message.additional_kwargs["function"]` stuff that make me always scratch my head - it's a lot of superfluous code that make the tool invocation interface less friendly. Would be nice to be able to just go from message -> tool invocation. TODO: Add docstring, etc. Open to other names, class methods, and other suggestions. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:44:25 -05:00
yindo closed this issue 2026-02-20 17:44:25 -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#1315