def from_host_and_port(
        cls,
        host: str,
        port: int,
        db_name: Optional[str] = None,
        collection_name: Optional[str] = None,
    ) -> "AzureCosmosMongoVCoreChatStore":
        """Initializes AzureCosmosMongoVCoreChatStore from an endpoint url and key."""
        mongo_client = MongoClient(host=host, port=port, appname=APP_NAME)

        return cls(
            mongo_client=mongo_client,
            host=host,
            port=port,
            db_name=db_name,
            collection_name=collection_name,
        )
Initializes AzureCosmosMongoVCoreChatStore from an endpoint url and key.
llama-index-integrations/storage/chat_store/llama-index-storage-chat-store-azurecosmosmongovcore/llama_index/storage/chat_store/azurecosmosmongovcore/base.py