Namespace: LLama.Abstractions
A high level interface for LLama models.
public interface ILLamaExecutor
The loaded context for this executor.
public abstract LLamaContext Context { get; }
Infers a response from the model.
IEnumerable<string> Infer(string text, IInferenceParams inferenceParams, CancellationToken token)
text String
Your prompt
inferenceParams IInferenceParams
Any additional parameters
token CancellationToken
A cancellation token.
Asynchronously infers a response from the model.
IAsyncEnumerable<string> InferAsync(string text, IInferenceParams inferenceParams, CancellationToken token)
text String
Your prompt
inferenceParams IInferenceParams
Any additional parameters
token CancellationToken
A cancellation token.