microsoft-agents-storage-cosmos 0.5.0.dev5__py3-none-any.whl → 0.5.0.dev7__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.
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.4
2
+ Name: microsoft-agents-storage-cosmos
3
+ Version: 0.5.0.dev7
4
+ Summary: A Cosmos DB storage library for Microsoft Agents
5
+ Author: Microsoft Corporation
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/microsoft/Agents
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev7
14
+ Requires-Dist: azure-core
15
+ Requires-Dist: azure-cosmos
16
+ Dynamic: license-file
17
+ Dynamic: requires-dist
18
+
19
+ # Microsoft Agents Storage - Cosmos DB
20
+
21
+ [![PyPI version](https://img.shields.io/pypi/v/microsoft-agents-storage-cosmos)](https://pypi.org/project/microsoft-agents-storage-cosmos/)
22
+
23
+ Azure Cosmos DB storage integration for Microsoft 365 Agents SDK. This library provides enterprise-grade persistent storage for conversation state, user data, and custom agent information using Azure Cosmos DB's globally distributed, multi-model database service.
24
+
25
+ This library implements the storage interface for the Microsoft 365 Agents SDK using Azure Cosmos DB as the backend. It provides automatic partitioning, global distribution, and low-latency access to your agent data. Perfect for production deployments requiring high availability, scalability, and multi-region support.
26
+
27
+ # What is this?
28
+ 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.
29
+
30
+ ## Packages Overview
31
+
32
+ We offer the following PyPI packages to create conversational experiences based on Agents:
33
+
34
+ | Package Name | PyPI Version | Description |
35
+ |--------------|-------------|-------------|
36
+ | `microsoft-agents-activity` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-activity)](https://pypi.org/project/microsoft-agents-activity/) | Types and validators implementing the Activity protocol spec. |
37
+ | `microsoft-agents-hosting-core` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-core)](https://pypi.org/project/microsoft-agents-hosting-core/) | Core library for Microsoft Agents hosting. |
38
+ | `microsoft-agents-hosting-aiohttp` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-aiohttp)](https://pypi.org/project/microsoft-agents-hosting-aiohttp/) | Configures aiohttp to run the Agent. |
39
+ | `microsoft-agents-hosting-teams` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-teams)](https://pypi.org/project/microsoft-agents-hosting-teams/) | Provides classes to host an Agent for Teams. |
40
+ | `microsoft-agents-storage-blob` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-blob)](https://pypi.org/project/microsoft-agents-storage-blob/) | Extension to use Azure Blob as storage. |
41
+ | `microsoft-agents-storage-cosmos` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-cosmos)](https://pypi.org/project/microsoft-agents-storage-cosmos/) | Extension to use CosmosDB as storage. |
42
+ | `microsoft-agents-authentication-msal` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-authentication-msal)](https://pypi.org/project/microsoft-agents-authentication-msal/) | MSAL-based authentication for Microsoft Agents. |
43
+
44
+ Additionally we provide a Copilot Studio Client, to interact with Agents created in CopilotStudio:
45
+
46
+ | Package Name | PyPI Version | Description |
47
+ |--------------|-------------|-------------|
48
+ | `microsoft-agents-copilotstudio-client` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-copilotstudio-client)](https://pypi.org/project/microsoft-agents-copilotstudio-client/) | Direct to Engine client to interact with Agents created in CopilotStudio |
49
+
50
+ **Why Cosmos DB?**
51
+ - 🌍 Global distribution with multi-region writes
52
+ - ⚡ Single-digit millisecond latency
53
+ - 📈 Automatic and instant scalability
54
+ - 🔄 Multiple consistency models
55
+ - 💪 99.999% availability SLA
56
+
57
+ ## Installation
58
+
59
+ ```bash
60
+ pip install microsoft-agents-storage-cosmos
61
+ ```
62
+
63
+
64
+ ## Environment Setup
65
+
66
+ ### Local Development with Cosmos DB Emulator
67
+
68
+ Install and run the Azure Cosmos DB Emulator for local testing:
69
+
70
+ **Download:** [Azure Cosmos DB Emulator](https://docs.microsoft.com/azure/cosmos-db/local-emulator)
71
+
72
+
73
+ ## Best Practices
74
+
75
+ 1. **Use Managed Identity in Production** - Avoid storing auth keys in code or environment variables
76
+ 2. **Initialize Once** - Call `storage.initialize()` during app startup, not per request
77
+ 3. **Batch Operations** - Read/write multiple items together when possible
78
+ 4. **Monitor RU Consumption** - Use Azure Monitor to track Request Units usage
79
+ 5. **Set Appropriate Throughput** - Start with 400 RU/s, scale up based on metrics
80
+ 6. **Use Session Consistency** - Default consistency level for most scenarios
81
+ 7. **Implement Retry Logic** - Handle transient failures with exponential backoff
82
+ 8. **Partition Wisely** - Current implementation uses `/id` partitioning (automatic)
83
+ 9. **Enable Diagnostics** - Configure Azure diagnostic logs for troubleshooting
84
+ 10. **Test with Emulator** - Use local emulator for development and testing
85
+
86
+ ## Key Classes Reference
87
+
88
+ - **`CosmosDBStorage`** - Main storage implementation using Azure Cosmos DB
89
+ - **`CosmosDBStorageConfig`** - Configuration settings for connection and behavior
90
+ - **`StoreItem`** - Base class for data models (inherit to create custom types)
91
+
92
+ # Quick Links
93
+
94
+ - 📦 [All SDK Packages on PyPI](https://pypi.org/search/?q=microsoft-agents)
95
+ - 📖 [Complete Documentation](https://aka.ms/agents)
96
+ - 💡 [Python Samples Repository](https://github.com/microsoft/Agents/tree/main/samples/python)
97
+ - 🐛 [Report Issues](https://github.com/microsoft/Agents-for-python/issues)
98
+
99
+ # Sample Applications
100
+
101
+ |Name|Description|README|
102
+ |----|----|----|
103
+ |Quickstart|Simplest agent|[Quickstart](https://github.com/microsoft/Agents/blob/main/samples/python/quickstart/README.md)|
104
+ |Auto Sign In|Simple OAuth agent using Graph and GitHub|[auto-signin](https://github.com/microsoft/Agents/blob/main/samples/python/auto-signin/README.md)|
105
+ |OBO Authorization|OBO flow to access a Copilot Studio Agent|[obo-authorization](https://github.com/microsoft/Agents/blob/main/samples/python/obo-authorization/README.md)|
106
+ |Semantic Kernel Integration|A weather agent built with Semantic Kernel|[semantic-kernel-multiturn](https://github.com/microsoft/Agents/blob/main/samples/python/semantic-kernel-multiturn/README.md)|
107
+ |Streaming Agent|Streams OpenAI responses|[azure-ai-streaming](https://github.com/microsoft/Agents/blob/main/samples/python/azureai-streaming/README.md)|
108
+ |Copilot Studio Client|Console app to consume a Copilot Studio Agent|[copilotstudio-client](https://github.com/microsoft/Agents/blob/main/samples/python/copilotstudio-client/README.md)|
109
+ |Cards Agent|Agent that uses rich cards to enhance conversation design |[cards](https://github.com/microsoft/Agents/blob/main/samples/python/cards/README.md)|
@@ -2,8 +2,8 @@ microsoft_agents/storage/cosmos/__init__.py,sha256=2JVNhbohUB-Pm8LmgagHQH3vlEglj
2
2
  microsoft_agents/storage/cosmos/cosmos_db_storage.py,sha256=jcyLaaGtnvbjAjjVoNygQQy96Qhj9a8wURU50XVMHUk,6515
3
3
  microsoft_agents/storage/cosmos/cosmos_db_storage_config.py,sha256=JS2dQnwCjR1XfEIeJnQGJHhMwxeBmUNwWANqRte10N4,4114
4
4
  microsoft_agents/storage/cosmos/key_ops.py,sha256=2wnSdSpKzwoCvw4giNn68pBDOa1Gc1jyvEhk2tc_gPQ,1747
5
- microsoft_agents_storage_cosmos-0.5.0.dev5.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
6
- microsoft_agents_storage_cosmos-0.5.0.dev5.dist-info/METADATA,sha256=heR5PwDhOhcq-3jfwn0_K_PQxnJbC-nRhPwNT7OdXnU,547
7
- microsoft_agents_storage_cosmos-0.5.0.dev5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- microsoft_agents_storage_cosmos-0.5.0.dev5.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
9
- microsoft_agents_storage_cosmos-0.5.0.dev5.dist-info/RECORD,,
5
+ microsoft_agents_storage_cosmos-0.5.0.dev7.dist-info/licenses/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
6
+ microsoft_agents_storage_cosmos-0.5.0.dev7.dist-info/METADATA,sha256=wal3UDd9jS6EHbfid0orJcQ8zFfVOzjtswgxG_m5rB0,7136
7
+ microsoft_agents_storage_cosmos-0.5.0.dev7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ microsoft_agents_storage_cosmos-0.5.0.dev7.dist-info/top_level.txt,sha256=lWKcT4v6fTA_NgsuHdNvuMjSrkiBMXohn64ApY7Xi8A,17
9
+ microsoft_agents_storage_cosmos-0.5.0.dev7.dist-info/RECORD,,
@@ -1,16 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: microsoft-agents-storage-cosmos
3
- Version: 0.5.0.dev5
4
- Summary: A Cosmos DB storage library for Microsoft Agents
5
- Author: Microsoft Corporation
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/microsoft/Agents
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Operating System :: OS Independent
10
- Requires-Python: >=3.9
11
- License-File: LICENSE
12
- Requires-Dist: microsoft-agents-hosting-core==0.5.0.dev5
13
- Requires-Dist: azure-core
14
- Requires-Dist: azure-cosmos
15
- Dynamic: license-file
16
- Dynamic: requires-dist