[PR #1129] [CLOSED] Add trace parameter to init method #1907

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1129
Author: @vegetablest
Created: 7/24/2024
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • cf627a5 refactor: add trace parameter to init method

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 libs/langgraph/langgraph/prebuilt/tool_executor.py (+2 -1)

📄 Description

Currently, the trace parameter in ToolExecutor is fixed at False. This means that if a node in the graph uses this, the trace record of that node in LangSmith is always independent of the entire graph. To allow for flexible tracing configuration, I added a trace parameter to the ToolExecutor.__init__() method.


🔄 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/1129 **Author:** [@vegetablest](https://github.com/vegetablest) **Created:** 7/24/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`cf627a5`](https://github.com/langchain-ai/langgraph/commit/cf627a519da76f2b6332bba7a157b8eb59ef5778) refactor: add trace parameter to init method ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/prebuilt/tool_executor.py` (+2 -1) </details> ### 📄 Description Currently, the `trace` parameter in `ToolExecutor` is fixed at False. This means that if a node in the graph uses this, the trace record of that node in LangSmith is always independent of the entire graph. To allow for flexible tracing configuration, I added a trace parameter to the `ToolExecutor.__init__()` method. --- <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:45:49 -05:00
yindo closed this issue 2026-02-20 17:45:49 -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#1907