# ITextStreamTransform Namespace: LLama.Abstractions Takes a stream of tokens and transforms them. ```csharp public interface ITextStreamTransform ``` ## Methods ### **Transform(IEnumerable<String>)** Takes a stream of tokens and transforms them, returning a new stream of tokens. ```csharp IEnumerable Transform(IEnumerable tokens) ``` #### Parameters `tokens` [IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)
#### Returns [IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)
### **TransformAsync(IAsyncEnumerable<String>)** Takes a stream of tokens and transforms them, returning a new stream of tokens asynchronously. ```csharp IAsyncEnumerable TransformAsync(IAsyncEnumerable tokens) ``` #### Parameters `tokens` [IAsyncEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)
#### Returns [IAsyncEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)