Companion

object Companion

Functions

Link copied to clipboard
fun <T> requestInput(interruptId: String = Uuid.random(), message: String? = null, payload: Any? = null, responseSchema: Schema? = null): T

Asks the user for input and ends the body's run, so it never returns; the answer becomes the node's output unless the node reruns on resume. Parameters are as in RequestInput (a single argument is the interrupt id, not the message), and a catch (Throwable t) around the call cancels the request. payload must be JSON-native (maps, lists, strings, numbers, booleans); JVM code uses FunctionNodes.requestInput, which also takes a record or POJO.