Documentation - v1.2.0-alpha.3
    Preparing search index...

    Module @microsoft/agents-hosting-storage-cosmos

    @microsoft/agents-hosting-storage-cosmos

    This package allows to configure Azure CosmosDB Storage as the backend for Agents conversation State

    const cosmosDbStorageOptions = {
    databaseId: process.env.COSMOS_DATABASE_ID || 'agentsDB',
    containerId: process.env.COSMOS_CONTAINER_ID || 'agentsState',
    cosmosClientOptions: {
    endpoint: process.env.COSMOS_ENDPOINT!,
    key: process.env.COSMOS_KEY!,
    }
    } as CosmosDbPartitionedStorageOptions
    const cosmosStorage = new CosmosDbPartitionedStorage(cosmosDbStorageOptions)
    const conversationState = new ConversationState(cosmosStorage)
    const userState = new UserState(cosmosStorage)

    Classes

    CosmosDbPartitionedStorage
    ExceptionHelper

    Interfaces

    AgentError
    AgentErrorDefinition
    CosmosDbPartitionedStorageOptions

    Variables

    Errors