Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IArtificialIntelligenceHttpClientHelper.cs

using Nop.Core.Domain.ArtificialIntelligence;

namespace Nop.Services.ArtificialIntelligence;

/// 
/// Represents the HTTP client helper interface to create artificial intelligence host requests
/// 
public partial interface IArtificialIntelligenceHttpClientHelper
{
    /// 
    /// Configure client
    /// 
    /// HTTP client for configuration
    void ConfigureClient(HttpClient httpClient);

    /// 
    /// Create HTTP request
    /// 
    /// Artificial intelligence settings
    /// query to send into artificial intelligence host
    /// Created HttpRequestMessage
    HttpRequestMessage CreateRequest(ArtificialIntelligenceSettings settings, string query);

    /// 
    /// Parse response
    /// 
    /// Response text to parse
    /// Generated text from artificial intelligence host
    string ParseResponse(string responseText);
}