Skip to content

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

@cqray1990

Description

@cqray1990

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpendingawaiting review/confirmation by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions