hello123456

async purgeCache(agentName, conversationId) {
    // Construct the key for cache purging
    const cacheKey = `${agentName}-${conversationId}-actions`;

    // Retrieve the base URL from configuration and append the cacheKey
    const baseUrl = this.configService.get('PURGE_CACHE_URL'); // Assuming this is how you get config value
    const purgeUrl = `${baseUrl}?appName=CVS_APP&context=chatfulfillment&keys=${encodeURIComponent(cacheKey)}`;

    const headers = {
        // Your headers here
    };

    // Make a request to the cache purge endpoint
    try {
        await this.axiosUtil.getInstance().get(purgeUrl, { headers });
        new Logger().log('Cache successfully purged');
    } catch (error) {
        new Logger().error(`Error purging cache: ${error}`);
        // Handle error as appropriate
    }
}