Table of Contents

Class AgentTemplate

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

Base class for agent templates that provide pre-configured agents for common use cases.

public abstract class AgentTemplate
Inheritance
AgentTemplate
Derived
Inherited Members

Remarks

Templates encapsulate best practices for specific agent patterns, including appropriate system prompts, planning strategies, tool configurations, and execution settings.

Derived templates can be customized before building the final agent.

Properties

AdditionalInstructions

Gets or sets additional instructions to append to the system prompt.

MaxIterations

Gets or sets the maximum iterations for execution.

Model

Gets or sets the model to use.

TemplateName

Gets the template name.

Methods

Build()

Builds the configured agent.

CombinePrompt(string)

Combines the base system prompt with additional instructions.

ConfigureBuilder(AgentBuilder)

Configures the agent builder with template-specific settings.