Table of Contents

Class DebuggerAgentTemplate

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

A template for creating debugging and troubleshooting agents.

Debugger agents excel at analyzing errors, parsing logs, identifying root causes, and suggesting fixes for technical issues.

public sealed class DebuggerAgentTemplate : AgentTemplate
Inheritance
DebuggerAgentTemplate
Inherited Members

Examples

var agent = new DebuggerAgentTemplate()
    .WithModel(model)
    .WithContext(DebugContext.Backend)
    .WithLanguages("C#", "SQL")
    .WithVerbosity(DebugVerbosity.Detailed)
    .Build();

var result = await agent.RunAsync("NullReferenceException at line 42...");

Properties

TemplateName

Gets the template name.

Methods

ConfigureBuilder(AgentBuilder)

Configures the agent builder with template-specific settings.

WithContext(DebugContext)

Sets the debugging context.

WithEnvironment(string)

Sets the runtime environment.

WithFramework(string)

Sets the framework being used.

WithLanguages(params string[])

Sets the programming languages involved.

WithModel(LM)

Sets the model for the agent.

WithPrevention(bool)

Sets whether to include prevention tips.

WithSteps(bool)

Sets whether to include step-by-step debugging instructions.

WithVerbosity(DebugVerbosity)

Sets the verbosity level for explanations.