Table of Contents

Class AssistantAgentTemplate

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

A template for creating general-purpose assistant agents.

Assistant agents are versatile helpers capable of handling a wide range of tasks including writing, analysis, planning, and problem-solving.

public sealed class AssistantAgentTemplate : AgentTemplate
Inheritance
AssistantAgentTemplate
Inherited Members

Examples

var agent = new AssistantAgentTemplate()
    .WithModel(model)
    .WithExpertise("business", "writing")
    .Build();

var result = await agent.RunAsync("Help me write a project proposal");

Properties

TemplateName

Gets the template name.

Methods

ConfigureBuilder(AgentBuilder)

Configures the agent builder with template-specific settings.

WithExpertise(params string[])

Sets areas of expertise for the assistant.

WithModel(LM)

Sets the model for the agent.

WithProactiveMode(bool)

Sets whether the assistant should be proactive with suggestions.

WithResponseStyle(ResponseStyle)

Sets the response style preference.

WithRole(string)

Sets a specific role description.