Node Functuon of langgraph only can pass one param as State params? #1100

Closed
opened 2026-02-20 17:43:04 -05:00 by yindo · 1 comment
Owner

Originally created by @cqray1990 on GitHub (Dec 21, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

in inject_thread_id_node function  config param can not be passed?
def inject_thread_id_node(state:SearchState,config:dict):
    thread_id = (
        config
        .get("configurable", {})
        .get("thread_id", "default_thread")  # 默认值防错
    )
    return {"thread_id": thread_id}  # ← 仅更新 thread_id

Error Message and Stack Trace (if applicable)


Description

Node Functuon of langgraph only can pass one param as State params?

System Info

Node Functuon of langgraph only can pass one param as State params?

Originally created by @cqray1990 on GitHub (Dec 21, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/). - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python in inject_thread_id_node function config param can not be passed? def inject_thread_id_node(state:SearchState,config:dict): thread_id = ( config .get("configurable", {}) .get("thread_id", "default_thread") # 默认值防错 ) return {"thread_id": thread_id} # ← 仅更新 thread_id ``` ### Error Message and Stack Trace (if applicable) ```shell ``` ### Description Node Functuon of langgraph only can pass one param as State params? ### System Info Node Functuon of langgraph only can pass one param as State params?
yindo added the bugpending labels 2026-02-20 17:43:04 -05:00
yindo closed this issue 2026-02-20 17:43:04 -05:00
Author
Owner

@QwQzy commented on GitHub (Dec 21, 2025):

def inject_thread_id_node(state:SearchState,config:RunnableConfig):

@QwQzy commented on GitHub (Dec 21, 2025): `def inject_thread_id_node(state:SearchState,config:RunnableConfig):`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1100