using System.Collections.Generic;
namespace LLama.Abstractions
{
///
/// Takes a stream of tokens and transforms them.
///
public interface ITextStreamTransform
{
///
/// Takes a stream of tokens and transforms them, returning a new stream of tokens.
///
///
///
IEnumerable Transform(IEnumerable tokens);
///
/// Takes a stream of tokens and transforms them, returning a new stream of tokens asynchronously.
///
///
///
IAsyncEnumerable TransformAsync(IAsyncEnumerable tokens);
}
}