Azure Cosmos DB history provider integration for Microsoft Agent Framework.
Project description
Get Started with Microsoft Agent Framework Azure Cosmos DB
Please install this package via pip:
pip install agent-framework-azure-cosmos --pre
Azure Cosmos DB History Provider
The Azure Cosmos DB integration provides CosmosHistoryProvider for persistent conversation history storage.
Basic Usage Example
from azure.identity.aio import DefaultAzureCredential
from agent_framework_azure_cosmos import CosmosHistoryProvider
provider = CosmosHistoryProvider(
endpoint="https://<account>.documents.azure.com:443/",
credential=DefaultAzureCredential(),
database_name="agent-framework",
container_name="chat-history",
)
Credentials follow the same pattern used by other Azure connectors in the repository:
- Pass a credential object (for example
DefaultAzureCredential) - Or pass a key string directly
- Or set
AZURE_COSMOS_KEYin the environment
Container naming behavior:
- Container name is configured on the provider (
container_nameorAZURE_COSMOS_CONTAINER_NAME) session_idis used as the Cosmos partition key for reads/writes
See samples/cosmos_history_provider.py for a runnable package-local example.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_framework_azure_cosmos-1.0.0b260330.tar.gz.
File metadata
- Download URL: agent_framework_azure_cosmos-1.0.0b260330.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e872a904f0439f666808a4ce44391fb1a775c8100bfa44ed5fd1af893764d148
|
|
| MD5 |
1bdb0c4cdf518c813e5412889480a60d
|
|
| BLAKE2b-256 |
cecb05266af355433aadbdb2c03af020102f3a9db003cce0104f64ca8c0419c4
|
File details
Details for the file agent_framework_azure_cosmos-1.0.0b260330-py3-none-any.whl.
File metadata
- Download URL: agent_framework_azure_cosmos-1.0.0b260330-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70148b406550678489d831c85ee707342f10082640b2f98a419e299c5cb7b775
|
|
| MD5 |
402c7d6bb69e2cab97ea70af56345fa9
|
|
| BLAKE2b-256 |
9af7d184b145fe0e061920f0697ca505ccef825b5f7d7991623cfccd196ebc84
|