microsoft-agents-storage-cosmos 0.5.0.dev17__py3-none-any.whl → 0.6.0.dev1__py3-none-any.whl

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.
@@ -2,7 +2,7 @@
2
2
  # Licensed under the MIT License.
3
3
 
4
4
  from typing import TypeVar, Union
5
- from threading import Lock
5
+ import asyncio
6
6
 
7
7
  from azure.cosmos import (
8
8
  documents,
@@ -49,7 +49,7 @@ class CosmosDBStorage(AsyncStorageBase):
49
49
  self._container: ContainerProxy = None
50
50
  self._compatability_mode_partition_key: bool = False
51
51
  # Lock used for synchronizing container creation
52
- self._lock: Lock = Lock()
52
+ self._lock: asyncio.Lock = asyncio.Lock()
53
53
 
54
54
  def _create_client(self) -> CosmosClient:
55
55
  if self._config.url:
@@ -164,8 +164,8 @@ class CosmosDBStorage(AsyncStorageBase):
164
164
 
165
165
  async def initialize(self) -> None:
166
166
  if not self._container:
167
- with self._lock:
168
- # in case another thread attempted to initialize just before acquiring the lock
167
+ async with self._lock:
168
+ # in case another async task attempted to initialize just before acquiring the lock
169
169
  if self._container:
170
170
  return
171
171
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: microsoft-agents-storage-cosmos
3
- Version: 0.5.0.dev17
3
+ Version: 0.6.0.dev1
4
4
  Summary: A Cosmos DB storage library for Microsoft Agents
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -15,7 +15,7 @@ Classifier: Operating System :: OS Independent
15
15
  Requires-Python: >=3.10
16
16
  Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
- Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev17
18
+ Requires-Dist: microsoft-agents-hosting-core==0.6.0.dev1
19
19
  Requires-Dist: azure-core
20
20
  Requires-Dist: azure-cosmos
21
21
  Dynamic: license-file
@@ -32,6 +32,24 @@ This library implements the storage interface for the Microsoft 365 Agents SDK u
32
32
  # What is this?
33
33
  This library is part of the **Microsoft 365 Agents SDK for Python** - a comprehensive framework for building enterprise-grade conversational AI agents. The SDK enables developers to create intelligent agents that work across multiple platforms including Microsoft Teams, M365 Copilot, Copilot Studio, and web chat, with support for third-party integrations like Slack, Facebook Messenger, and Twilio.
34
34
 
35
+ ## Release Notes
36
+ <table style="width:100%">
37
+ <tr>
38
+ <th style="width:20%">Version</th>
39
+ <th style="width:20%">Date</th>
40
+ <th style="width:60%">Release Notes</th>
41
+ </tr>
42
+ <tr>
43
+ <td>0.5.0</td>
44
+ <td>2025-10-22</td>
45
+ <td>
46
+ <a href="https://github.com/microsoft/Agents-for-python/blob/main/changelog.md">
47
+ 0.5.0 Release Notes
48
+ </a>
49
+ </td>
50
+ </tr>
51
+ </table>
52
+
35
53
  ## Packages Overview
36
54
 
37
55
  We offer the following PyPI packages to create conversational experiences based on Agents:
@@ -0,0 +1,9 @@
1
+ microsoft_agents/storage/cosmos/__init__.py,sha256=2JVNhbohUB-Pm8LmgagHQH3vlEgljpUzbfPhdOS-rCQ,174
2
+ microsoft_agents/storage/cosmos/cosmos_db_storage.py,sha256=yqU51Ji0wceuHKtppa2oQDrBqXI0LFi69OPGDe2mh8o,6529
3
+ microsoft_agents/storage/cosmos/cosmos_db_storage_config.py,sha256=a2-s7Kj5RbYnVU0CyB60dEG501-oRcSXZTQ--_QlISA,4143
4
+ microsoft_agents/storage/cosmos/key_ops.py,sha256=2wnSdSpKzwoCvw4giNn68pBDOa1Gc1jyvEhk2tc_gPQ,1747
5
+ microsoft_agents_storage_cosmos-0.6.0.dev1.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
6
+ microsoft_agents_storage_cosmos-0.6.0.dev1.dist-info/METADATA,sha256=PRzQVMDlcl-EHJCEDOWdhgPU3cBlwfJyGyKOEe7Nvfw,7784
7
+ microsoft_agents_storage_cosmos-0.6.0.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ microsoft_agents_storage_cosmos-0.6.0.dev1.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
9
+ microsoft_agents_storage_cosmos-0.6.0.dev1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- microsoft_agents/storage/cosmos/__init__.py,sha256=2JVNhbohUB-Pm8LmgagHQH3vlEgljpUzbfPhdOS-rCQ,174
2
- microsoft_agents/storage/cosmos/cosmos_db_storage.py,sha256=jcyLaaGtnvbjAjjVoNygQQy96Qhj9a8wURU50XVMHUk,6515
3
- microsoft_agents/storage/cosmos/cosmos_db_storage_config.py,sha256=a2-s7Kj5RbYnVU0CyB60dEG501-oRcSXZTQ--_QlISA,4143
4
- microsoft_agents/storage/cosmos/key_ops.py,sha256=2wnSdSpKzwoCvw4giNn68pBDOa1Gc1jyvEhk2tc_gPQ,1747
5
- microsoft_agents_storage_cosmos-0.5.0.dev17.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
6
- microsoft_agents_storage_cosmos-0.5.0.dev17.dist-info/METADATA,sha256=3gGOe39kljFQxwIYdpXXa7BOwgi7xNr-NHtgWsPPsKw,7394
7
- microsoft_agents_storage_cosmos-0.5.0.dev17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- microsoft_agents_storage_cosmos-0.5.0.dev17.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
9
- microsoft_agents_storage_cosmos-0.5.0.dev17.dist-info/RECORD,,