Share via


CosmosDBChatExtensions Class

Definition

Provides extension methods for integrating Cosmos DB chat message storage with the Agent Framework.

public static class CosmosDBChatExtensions
type CosmosDBChatExtensions = class
Public Module CosmosDBChatExtensions
Inheritance
CosmosDBChatExtensions

Methods

Name Description
WithCosmosDBChatHistoryProvider(ChatClientAgentOptions, CosmosClient, String, String, Func<AgentSession,CosmosChatHistoryProvider.State>)

Configures the agent to use Cosmos DB for message storage with an existing CosmosClient.

WithCosmosDBChatHistoryProvider(ChatClientAgentOptions, String, String, String, Func<AgentSession,CosmosChatHistoryProvider.State>)

Configures the agent to use Cosmos DB for message storage with connection string authentication.

WithCosmosDBChatHistoryProviderUsingManagedIdentity(ChatClientAgentOptions, String, String, String, TokenCredential, Func<AgentSession,CosmosChatHistoryProvider.State>)

Configures the agent to use Cosmos DB for message storage with managed identity authentication.

Applies to