Share via


JsonCheckpointStore.RetrieveCheckpointAsync(String, CheckpointInfo) Method

Definition

Asynchronously retrieves a checkpoint object associated with the specified session and checkpoint key.

public abstract System.Threading.Tasks.ValueTask<System.Text.Json.JsonElement> RetrieveCheckpointAsync(string sessionId, Microsoft.Agents.AI.Workflows.CheckpointInfo key);
abstract member RetrieveCheckpointAsync : string * Microsoft.Agents.AI.Workflows.CheckpointInfo -> System.Threading.Tasks.ValueTask<System.Text.Json.JsonElement>
Public MustOverride Function RetrieveCheckpointAsync (sessionId As String, key As CheckpointInfo) As ValueTask(Of JsonElement)

Parameters

sessionId
String

The unique identifier of the session for which the checkpoint is to be retrieved. Cannot be null or empty.

key
CheckpointInfo

The key identifying the specific checkpoint to retrieve. Cannot be null.

Returns

A ValueTask that represents the asynchronous operation. The result contains the checkpoint object associated with the specified session and key.

Implements

Applies to