function toRunRef(state, storedInSessionId?): RunRef;
state
RunState
storedInSessionId?
string
RunRef