Share via


CosmosCheckpointStore<T> Class

Definition

Provides a Cosmos DB implementation of the JsonCheckpointStore abstract class.

public class CosmosCheckpointStore<T> : Microsoft.Agents.AI.Workflows.Checkpointing.JsonCheckpointStore, IDisposable
type CosmosCheckpointStore<'T> = class
    inherit JsonCheckpointStore
    interface IDisposable
Public Class CosmosCheckpointStore(Of T)
Inherits JsonCheckpointStore
Implements IDisposable

Type Parameters

T

The type of objects to store as checkpoint values.

Inheritance
CosmosCheckpointStore<T>
Derived
Implements

Constructors

Name Description
CosmosCheckpointStore<T>(CosmosClient, String, String)

Initializes a new instance of the CosmosCheckpointStore<T> class using an existing CosmosClient.

CosmosCheckpointStore<T>(String, String, String)

Initializes a new instance of the CosmosCheckpointStore<T> class using a connection string.

CosmosCheckpointStore<T>(String, TokenCredential, String, String)

Initializes a new instance of the CosmosCheckpointStore<T> class using a TokenCredential for authentication.

Properties

Name Description
ContainerId

Gets the identifier of the Cosmos DB container.

DatabaseId

Gets the identifier of the Cosmos DB database.

Methods

Name Description
CreateCheckpointAsync(String, JsonElement, CheckpointInfo)
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Releases the unmanaged resources used by the CosmosCheckpointStore<T> and optionally releases the managed resources.

RetrieveCheckpointAsync(String, CheckpointInfo)
RetrieveIndexAsync(String, CheckpointInfo)

Applies to