Table of Contents

Class ChatAgentTemplate

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

A template for creating conversational chat agents.

Chat agents are optimized for natural, multi-turn conversations with context retention and friendly interaction patterns.

public sealed class ChatAgentTemplate : AgentTemplate
Inheritance
ChatAgentTemplate
Inherited Members

Examples

var agent = new ChatAgentTemplate()
    .WithModel(model)
    .WithPersonality("friendly and helpful")
    .Build();

var result = await agent.RunAsync("Hello! How are you?");

Properties

TemplateName

Gets the template name.

Methods

ConfigureBuilder(AgentBuilder)

Configures the agent builder with template-specific settings.

WithContext(string)

Sets context information about the user or situation.

WithModel(LM)

Sets the model for the agent.

WithPersonality(string)

Sets a personality description for the agent.