Skip to content

AzureCosmosNoSqlChatStore

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:61

  • BaseChatStore<AdditionalMessageOptions>

AdditionalMessageOptions extends object = object

new AzureCosmosNoSqlChatStore<AdditionalMessageOptions>(__namedParameters): AzureCosmosNoSqlChatStore<AdditionalMessageOptions>

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:77

AzureCosmosNoSqlChatStoreConfig

AzureCosmosNoSqlChatStore<AdditionalMessageOptions>

BaseChatStore<AdditionalMessageOptions>.constructor

client(): CosmosClient

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:112

CosmosClient


static fromConnectionString(config): AzureCosmosNoSqlChatStore

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:148

Static method for creating an instance using a connection string. If no connection string is provided, it will attempt to use the env variable AZURE_COSMOSDB_NOSQL_CONNECTION_STRING as connection string.

object & AzureCosmosNoSqlChatStoreConfig = {}

AzureCosmosNoSqlChatStore

Instance of AzureCosmosNoSqlKVStore


static fromAccountAndKey(config): AzureCosmosNoSqlChatStore

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:176

Static method for creating an instance using a account endpoint and key. If no endpoint and key is provided, it will attempt to use the env variable AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT as enpoint and AZURE_COSMOSDB_NOSQL_ACCOUNT_KEY as key.

object & AzureCosmosNoSqlChatStoreConfig = {}

AzureCosmosNoSqlChatStore

Instance of AzureCosmosNoSqlKVStore


static fromAadToken(config): AzureCosmosNoSqlChatStore

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:209

Static method for creating an instance using AAD token. If no endpoint and credentials are provided, it will attempt to use the env variable AZURE_COSMOSDB_NOSQL_ACCOUNT_ENDPOINT as endpoint and use DefaultAzureCredential() as credentials.

object & AzureCosmosNoSqlChatStoreConfig = {}

AzureCosmosNoSqlChatStore

Instance of AzureCosmosNoSqlKVStore


setMessages(key, messages): Promise<void>

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:259

Set messages for a given key.

string

ChatMessage<AdditionalMessageOptions>[]

Promise<void>

BaseChatStore.setMessages


getMessages(key): Promise<ChatMessage<AdditionalMessageOptions>[]>

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:275

Get messages for a given key.

string

Promise<ChatMessage<AdditionalMessageOptions>[]>

BaseChatStore.getMessages


addMessage(key, message, idx?): Promise<void>

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:288

Add a message for a given key.

string

ChatMessage<AdditionalMessageOptions>

number

Promise<void>

BaseChatStore.addMessage


deleteMessages(key): Promise<void>

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:307

Deletes all messages for a given key.

string

Promise<void>

BaseChatStore.deleteMessages


deleteMessage(key, idx): Promise<void>

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:318

Deletes one message at idx index for a given key.

string

number

Promise<void>

BaseChatStore.deleteMessage


getKeys(): Promise<IterableIterator<string, any, any>>

Defined in: .build/typescript/packages/providers/storage/azure/src/chatStore/AzureCosmosNoSqlChatStore.ts:331

Get all keys.

Promise<IterableIterator<string, any, any>>

BaseChatStore.getKeys