Pass arguments to Langgraph node #341
-
I have a question regarding how to pass additional arguments when running the graph. For example, we have the following snippet of code:
So, how can I pass values for extra_val_1 and extra_val_2? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
To pass things to a node, there's really two easy ways:
|
Beta Was this translation helpful? Give feedback.
-
I faced a similar situation where I needed to pass an LLM to the state. I solved it by using partial: llm = ChatOpenAI(...) and the function def process_confirmation( |
Beta Was this translation helpful? Give feedback.
To pass things to a node, there's really two easy ways:
configurable
params