You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.Collections.Generic;
- using System.Threading;
-
- namespace LLama.Abstractions
- {
- /// <summary>
- /// A high level interface for LLama models.
- /// </summary>
- public interface ILLamaExecutor
- {
- /// <summary>
- /// The loaded context for this executor.
- /// </summary>
- public LLamaContext Context { get; }
-
- /// <summary>
- /// Asynchronously infers a response from the model.
- /// </summary>
- /// <param name="text">Your prompt</param>
- /// <param name="inferenceParams">Any additional parameters</param>
- /// <param name="cancellationToken">A cancellation token.</param>
- /// <returns></returns>
- IAsyncEnumerable<string> InferAsync(string text, IInferenceParams? inferenceParams = null, CancellationToken cancellationToken = default);
- }
- }
|