Skip to content

ITextStreamTransform

Namespace: LLama.Abstractions

Takes a stream of tokens and transforms them.

1
public interface ITextStreamTransform

Methods

TransformAsync(IAsyncEnumerable<String>)

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

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

Parameters

tokens IAsyncEnumerable<String>

Returns

IAsyncEnumerable<String>

Clone()

Copy the transform.

1
ITextStreamTransform Clone()

Returns

ITextStreamTransform