Socket
Book a DemoInstallSign in
Socket

@microsoft/agents-bot-hosting-storage-cosmos

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/agents-bot-hosting-storage-cosmos

Microsoft 365 Agents SDK State Cosmos Storage support.

0.1.27
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

@microsoft/agents-bot-hosting-storage-cosmos

Overview

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

Usage

const cosmosDbStorageOptions = {
  databaseId: process.env.COSMOS_DATABASE_ID || 'botsDB',
  containerId: process.env.COSMOS_CONTAINER_ID || 'botState',
  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)

FAQs

Package last updated on 06 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.