Table of Contents

Class EditorAgentTemplate

Namespace
LMKit.Agents.Templates
Assembly
LM-Kit.NET.dll

A template for creating text editing and correction agents.

Editor agents excel at proofreading, grammar correction, style improvement, and tone adjustment while preserving the author's voice.

public sealed class EditorAgentTemplate : AgentTemplate
Inheritance
EditorAgentTemplate
Inherited Members

Examples

var agent = new EditorAgentTemplate()
    .WithModel(model)
    .WithEditType(EditType.ProofreadAndCorrect)
    .WithPreserveVoice(true)
    .WithStyleGuide("AP Style")
    .Build();

var result = await agent.RunAsync("Please edit: Their going to the store tommorrow...");

Properties

TemplateName

Gets the template name.

Methods

ConfigureBuilder(AgentBuilder)

Configures the agent builder with template-specific settings.

WithEditType(EditType)

Sets the type of editing to perform.

WithIntensity(EditIntensity)

Sets the editing intensity.

WithModel(LM)

Sets the model for the agent.

WithPreserveVoice(bool)

Sets whether to preserve the author's voice.

WithShowChanges(bool)

Sets whether to show changes made.

WithSimplifyLanguage(bool)

Sets whether to simplify complex language.

WithStyleGuide(string)

Sets a style guide to follow.

WithTargetTone(string)

Sets a target tone to adjust the text toward.