# Kendo UI for jQuery Checkpoint

Conversations with AI agents rarely follow a straight path. Users explore, change direction, and sometimes need to recover an earlier path.

The [Checkpoint](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/checkpoint) component adds an anchor between conversation turns and provides two clear recovery actions: restarting the conversation from scratch or regenerating only the latest response without discarding the rest of the thread.

## Configuration

Place a `startOver` checkpoint at the top of the conversation for a global reset, and place `redo` checkpoints between individual turns for targeted regeneration. The [`state`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/checkpoint/configuration/state) value controls both the label and icon, making the upcoming action clear to users.

By default, the separator appears only on hover. Set [`displayMode`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/checkpoint/configuration/displaymode) to `"always"` in compact or touch-focused layouts where hover may be unreliable.

```html
<div id="checkpoint"></div>

<script>
    $("#checkpoint").kendoCheckpoint({
        state: "restore",
        displayMode: "always"
    });
</script>
```

Handle the [`action`](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/checkpoint/events/action) event and branch on `e.action`: reset the full thread for `startOver`, or regenerate only the last response for `redo`.

```javascript
$("#checkpoint").kendoCheckpoint({
    state: "startOver",
    action: function(e) {
        if (e.action === "startOver") {
            console.log("Reset the conversation");
        }
    }
});
```

## See Also

* [Checkpoint Demo](https://demos.telerik.com/kendo-ui/llm-kit/checkpoint)
* [LLM Kit Overview](https://www.telerik.com/kendo-jquery-ui/documentation/controls/llm-kit/overview)
* [Tool Call](https://www.telerik.com/kendo-jquery-ui/documentation/controls/llm-kit/tool-call)
* [JavaScript API Reference of the Checkpoint](https://www.telerik.com/kendo-jquery-ui/documentation/api/ui/checkpoint)
