@microsoft/agents-hosting-storage-blob 0.5.19-gc1e2ea1096 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -4,10 +4,23 @@
4
4
 
5
5
  This package allows to configure Azure Blob Storage as the backend for Agents conversation State
6
6
 
7
- ## Usage
7
+ ## Usage with connectionStrings
8
8
 
9
9
  ```ts
10
- const blobStorage = new AzureBlobStorage(process.env.BLOB_STORAGE_CONNECTION_STRING!, process.env.BLOB_CONTAINER_ID!)
10
+ const blobStorage = new BlobStorage(process.env.BLOB_STORAGE_CONNECTION_STRING!, process.env.BLOB_CONTAINER_ID!)
11
11
  const conversationState = new ConversationState(blobStorage)
12
12
  const userState = new UserState(blobStorage)
13
+ ```
14
+
15
+
16
+ ## Usage with EntraID authentication
17
+
18
+ >note: you must assign RBAC permissions to your storage account
19
+
20
+ ```ts
21
+ const echo = new AgentApplication<TurnState>({
22
+ storage: new BlobsStorage('', undefined, undefined,
23
+ 'https://agentsstate.blob.core.windows.net/nodejs-conversations',
24
+ new MsalTokenCredential(loadAuthConfigFromEnv()))
25
+ })
13
26
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@microsoft/agents-hosting-storage-blob",
4
- "version": "0.5.19-gc1e2ea1096",
4
+ "version": "0.6.1",
5
5
  "homepage": "https://github.com/microsoft/Agents-for-js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "types": "dist/src/index.d.ts",
18
18
  "dependencies": {
19
19
  "@azure/storage-blob": "^12.27.0",
20
- "@microsoft/agents-hosting": "0.5.19-gc1e2ea1096"
20
+ "@microsoft/agents-hosting": "0.6.1"
21
21
  },
22
22
  "license": "MIT",
23
23
  "files": [