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<string> Transform(IEnumerable<string> tokens)
tokens IEnumerable<String>
Takes a stream of tokens and transforms them, returning a new stream of tokens asynchronously.
IAsyncEnumerable<string> TransformAsync(IAsyncEnumerable<string> tokens)
tokens IAsyncEnumerable<String>