|
12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # 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<string> Transform(IEnumerable<string> tokens)
- ```
-
- #### Parameters
-
- `tokens` [IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)<br>
-
- #### Returns
-
- [IEnumerable<String>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1)<br>
-
- ### **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>
|