namespace Gpt4All;
///
/// Interface for text prediction services
///
public interface ITextPrediction
{
///
/// Get prediction results for the prompt and provided options.
///
/// The text to complete
/// The prediction settings
/// The for cancellation requests. The default is .
/// The prediction result generated by the model
Task GetPredictionAsync(
string text,
PredictRequestOptions opts,
CancellationToken cancellation = default);
///
/// Get streaming prediction results for the prompt and provided options.
///
/// The text to complete
/// The prediction settings
/// The for cancellation requests. The default is .
/// The prediction result generated by the model
Task GetStreamingPredictionAsync(
string text,
PredictRequestOptions opts,
CancellationToken cancellationToken = default);
}