I am automating the cell execution. In every cell of the notebook, we call a function from the SDK. I am attaching a reference screenshot
In every cell, the format shown above will be used. Now, whenever an event occurs, I want to override the parameters of the functions based on the event.