Skip to content
Discussion options

You must be logged in to vote

To pass things to a node, there's really two easy ways:

  1. In the state: if you don't want it used by other nodes, namespace it:
class State(TypedDict):
    messages: list
    my_super_secret_args_for_fn: dict
  1. as configurable params
def my_node(state, config):
   some_arg = config["configurable"]["extra_val_1"]

....
app.invoke(input, {"configurable": {"extra_val_1": 42}})

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@ShonenAsh
Comment options

@hamdan-27
Comment options

@ShonenAsh
Comment options

@shadowtechn
Comment options

Answer selected by nathan-vo810
Comment options

You must be logged in to vote
2 replies
@87royalts87
Comment options

@danikenan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants