Table of Contents

Class ReviewerAgentTemplate

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

A template for creating review and feedback agents.

Reviewer agents excel at code review, document review, quality assessment, and providing constructive feedback based on defined criteria.

public sealed class ReviewerAgentTemplate : AgentTemplate
Inheritance
ReviewerAgentTemplate
Inherited Members

Examples

var agent = new ReviewerAgentTemplate()
    .WithModel(model)
    .WithReviewType(ReviewType.Code)
    .WithTone(ReviewTone.Constructive)
    .WithChecklist("security", "performance", "readability")
    .Build();

var result = await agent.RunAsync("Review this function:\n\npublic void ProcessData()...");

Properties

TemplateName

Gets the template name.

Methods

ConfigureBuilder(AgentBuilder)

Configures the agent builder with template-specific settings.

WithChecklist(params string[])

Sets specific criteria to check during review.

WithExamples(bool)

Sets whether to include examples in feedback.

WithMinimumSeverity(ReviewSeverity)

Sets the minimum severity level to report.

WithModel(LM)

Sets the model for the agent.

WithReviewType(ReviewType)

Sets the type of review to perform.

WithTone(ReviewTone)

Sets the tone for feedback.