Skip to main content
This guide assumes knowledge of what double-texting is, which you can learn about in the double-texting conceptual guide. The guide covers the rollback option for double texting, which interrupts the prior run of the graph and starts a new one with the double-text. This option is very similar to the interrupt option, but in this case the first run is completely deleted from the database and cannot be restarted. Below is a quick example of using the rollback option.

Setup

First, we will define a quick helper function for printing out JS and CURL model outputs (you can skip this if using Python):
Now, let’s import our required packages and instantiate our client, assistant, and thread.

Create runs

Now let’s run a thread with the multitask parameter set to “rollback”:

View run results

We can see that the thread has data only from the second run
Output:
Verify that the original, rolled back run was deleted
Output: