AsyncCosmosDBChatMessageHistory(
self,
cosmos_endpoint: str,
cosmos_database: str,
cosmos_container: str,
| Name | Type | Description |
|---|---|---|
cosmos_endpoint* | str | The connection endpoint for the account. |
cosmos_database* | str | The name of the database to use. |
cosmos_container* | str | The name of the container to use. |
session_id* | str | The session ID to use. |
user_id* | str | |
credential | Any | Default: None |
connection_string | Optional[str] | Default: None |
ttl | Optional[int] | Default: None |
cosmos_client_kwargs | Optional[dict] | Default: None |
Async chat message history backed by Azure CosmosDB.
The user ID to use.
The credential for Azure Cosmos DB.
The connection string to authenticate.
Time to live (seconds) for documents in the container.
Additional kwargs for the CosmosClient.