LLamaSharp/docs/xmldocs/llama.abstractions.itextstr...

1.2 KiB

ITextStreamTransform

Namespace: LLama.Abstractions

Takes a stream of tokens and transforms them.

public interface ITextStreamTransform

Methods

Transform(IEnumerable<String>)

Takes a stream of tokens and transforms them, returning a new stream of tokens.

IEnumerable<string> Transform(IEnumerable<string> tokens)

Parameters

tokens IEnumerable<String>

Returns

IEnumerable<String>

TransformAsync(IAsyncEnumerable<String>)

Takes a stream of tokens and transforms them, returning a new stream of tokens asynchronously.

IAsyncEnumerable<string> TransformAsync(IAsyncEnumerable<string> tokens)

Parameters

tokens IAsyncEnumerable<String>

Returns

IAsyncEnumerable<String>