using System.Collections.Generic;
using System.Threading;
namespace LLama.Abstractions
{
///
/// A high level interface for LLama models.
///
public interface ILLamaExecutor
{
///
/// The loaded context for this executor.
///
public LLamaContext Context { get; }
// LLava Section
//
///
/// Identify if it's a multi-modal model and there is a image to process.
///
public bool IsMultiModal { get; }
///
/// Multi-Modal Projections / Clip Model weights
///
public LLavaWeights? ClipModel { get; }
///
/// List of images: List of images in byte array format.
///
public List Images { get; }
///
/// Asynchronously infers a response from the model.
///
/// Your prompt
/// Any additional parameters
/// A cancellation token.
///
IAsyncEnumerable InferAsync(string text, IInferenceParams? inferenceParams = null, CancellationToken token = default);
}
}