using LLama.Abstractions; using System; using System.Collections.Generic; using System.Text; namespace LLama.Control { /// /// Control the text generation of LLama Executors. /// public interface IGenerationControl { /// /// Use the last output text to determine if the generation should stop. /// /// /// /// /// bool ShouldStopGeneration(LLamaContext context, IInferenceParams inferenceParams, string lastOutputText); /// /// Use the last output ids to determine if the generation should stop. /// /// /// /// /// bool ShouldStopGeneration(LLamaContext context, IInferenceParams inferenceParams, IEnumerable lastOutputIds); } }