# ASP.NET Core Checkpoint

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

The [Checkpoint component](https://www.telerik.com/aspnet-core-ui/documentation/api/checkpoint) 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`](https://www.telerik.com/aspnet-core-ui/documentation/api/checkpoint/state) 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/aspnet-core-ui/documentation/api/checkpoint/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/aspnet-core-ui/documentation/api/checkpoint/displaymode) to `"always"` in compact or touch-focused layouts where hover may be unreliable.

```Razor HtmlHelper
    @(Html.Kendo().Checkpoint()
        .Name("checkpoint")
        .State(CheckpointState.StartOver)
        .DisplayMode(CheckpointDisplayMode.Always)
    )
```

```Razor TagHelper
    <kendo-checkpoint name="checkpoint"
        state="CheckpointState.StartOver"
        display-mode="CheckpointDisplayMode.Always">
    </kendo-checkpoint>
```

Handle the [`Action`](https://www.telerik.com/aspnet-core-ui/documentation/api/checkpoint/action) event and branch on `event.State`: reset the full thread for `StartOver`, or regenerate only the last response for `Redo`.

## See Also

* [Checkpoint Demo for ASP.NET Core](https://demos.telerik.com/aspnet-core/llm_kit/checkpoint)

* [LLM Kit Overview](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/conversational-ui/llm-kit/overview)

* [Server-Side API of the Checkpoint HtmlHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/checkpoint)

* [Server-Side API of the Checkpoint TagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/taghelpers/checkpoint)

* [JavaScript API Reference of the Checkpoint](https://www.telerik.com/aspnet-core-ui/documentation/api/ui/checkpoint)
