Class TextRewriter
- Namespace
- LMKit.TextEnhancement
- Assembly
- LM-Kit.NET.dll
Provides functionality for rewriting text into a specified communication style and language.
public sealed class TextRewriter
- Inheritance
-
TextRewriter
- Inherited Members
Remarks
The TextRewriter class allows you to adapt text into different communication styles (e.g., Concise, Friendly, Professional) and languages while preserving the original content's structure and formatting. It uses a language model to perform the rewriting.
Constructors
- TextRewriter(LLM)
Initializes a new instance of the TextRewriter class.
Properties
- Model
Gets the LLM instance associated with this TextRewriter object.
Methods
- Rewrite(string, CommunicationStyle, Language, CancellationToken)
Rewrites the specified text into a specified style and language.
- RewriteAsync(string, CommunicationStyle, Language, CancellationToken)
Asynchronously rewrites the specified text into a specified style and language.
Events
- AfterTextCompletion
Occurs after a text completion operation is performed.