def do(node_input, env, context):
node_inputis what the worklet was called with. Otherwise
node_inputis the return value of the previous node in the worklet.
envcomes in. It's an empty dictionary to which you can add key/value pairs (again, JSON-serializable values only).
envgets threaded through the worklet execution, which means that the first node could set something on it and all subsequent nodes would have access to that data.
contextprovides two sets of functionality:
contextparameter can help.
node_input, env, contextargs; however, Decision nodes' output must be a boolean, which will determine which of its two child nodes should be called next.