CosmosCheckpointStore Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CosmosCheckpointStore(CosmosClient, String, String) |
Initializes a new instance of the CosmosCheckpointStore<T> class using an existing CosmosClient. |
| CosmosCheckpointStore(String, String, String) |
Initializes a new instance of the CosmosCheckpointStore<T> class using a connection string. |
| CosmosCheckpointStore(String, TokenCredential, String, String) |
Initializes a new instance of the CosmosCheckpointStore<T> class using a TokenCredential for authentication. |
CosmosCheckpointStore(CosmosClient, String, String)
Initializes a new instance of the CosmosCheckpointStore<T> class using an existing CosmosClient.
public CosmosCheckpointStore(Microsoft.Azure.Cosmos.CosmosClient cosmosClient, string databaseId, string containerId);
new Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore : Microsoft.Azure.Cosmos.CosmosClient * string * string -> Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore
Public Sub New (cosmosClient As CosmosClient, databaseId As String, containerId As String)
Parameters
- cosmosClient
- CosmosClient
The CosmosClient instance to use for Cosmos DB operations.
- databaseId
- String
The identifier of the Cosmos DB database.
- containerId
- String
The identifier of the Cosmos DB container.
Applies to
CosmosCheckpointStore(String, String, String)
Initializes a new instance of the CosmosCheckpointStore<T> class using a connection string.
public CosmosCheckpointStore(string connectionString, string databaseId, string containerId);
new Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore : string * string * string -> Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore
Public Sub New (connectionString As String, databaseId As String, containerId As String)
Parameters
- connectionString
- String
The Cosmos DB connection string.
- databaseId
- String
The identifier of the Cosmos DB database.
- containerId
- String
The identifier of the Cosmos DB container.
Applies to
CosmosCheckpointStore(String, TokenCredential, String, String)
Initializes a new instance of the CosmosCheckpointStore<T> class using a TokenCredential for authentication.
public CosmosCheckpointStore(string accountEndpoint, Azure.Core.TokenCredential tokenCredential, string databaseId, string containerId);
new Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore : string * Azure.Core.TokenCredential * string * string -> Microsoft.Agents.AI.Workflows.Checkpointing.CosmosCheckpointStore
Public Sub New (accountEndpoint As String, tokenCredential As TokenCredential, databaseId As String, containerId As String)
Parameters
- accountEndpoint
- String
The Cosmos DB account endpoint URI.
- tokenCredential
- TokenCredential
The TokenCredential to use for authentication (e.g., DefaultAzureCredential, ManagedIdentityCredential).
- databaseId
- String
The identifier of the Cosmos DB database.
- containerId
- String
The identifier of the Cosmos DB container.