40 lines
874 B
Markdown
40 lines
874 B
Markdown
# ITextStreamTransform
|
|
|
|
Namespace: LLama.Abstractions
|
|
|
|
Takes a stream of tokens and transforms them.
|
|
|
|
```csharp
|
|
public interface ITextStreamTransform
|
|
```
|
|
|
|
## Methods
|
|
|
|
### **TransformAsync(IAsyncEnumerable<String>)**
|
|
|
|
Takes a stream of tokens and transforms them, returning a new stream of tokens asynchronously.
|
|
|
|
```csharp
|
|
IAsyncEnumerable<string> TransformAsync(IAsyncEnumerable<string> tokens)
|
|
```
|
|
|
|
#### Parameters
|
|
|
|
`tokens` [IAsyncEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)<br>
|
|
|
|
#### Returns
|
|
|
|
[IAsyncEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)<br>
|
|
|
|
### **Clone()**
|
|
|
|
Copy the transform.
|
|
|
|
```csharp
|
|
ITextStreamTransform Clone()
|
|
```
|
|
|
|
#### Returns
|
|
|
|
[ITextStreamTransform](./llama.abstractions.itextstreamtransform.md)<br>
|