You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

llama.abstractions.itextstreamtransform.md 874 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # ITextStreamTransform
  2. Namespace: LLama.Abstractions
  3. Takes a stream of tokens and transforms them.
  4. ```csharp
  5. public interface ITextStreamTransform
  6. ```
  7. ## Methods
  8. ### **TransformAsync(IAsyncEnumerable<String>)**
  9. Takes a stream of tokens and transforms them, returning a new stream of tokens asynchronously.
  10. ```csharp
  11. IAsyncEnumerable<string> TransformAsync(IAsyncEnumerable<string> tokens)
  12. ```
  13. #### Parameters
  14. `tokens` [IAsyncEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)<br>
  15. #### Returns
  16. [IAsyncEnumerable&lt;String&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1)<br>
  17. ### **Clone()**
  18. Copy the transform.
  19. ```csharp
  20. ITextStreamTransform Clone()
  21. ```
  22. #### Returns
  23. [ITextStreamTransform](./llama.abstractions.itextstreamtransform.md)<br>