Table of Contents

Property Instruction

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

Instruction

Gets the base instruction that guides the agent's behavior and responsibilities.

public string Instruction { get; }

Property Value

string

Examples

Detailed instruction example:

using LMKit.Agents;

var identity = new AgentIdentity(
    persona: "API Documentation Writer",
    instruction: "Write clear, comprehensive API documentation. " +
                 "Include code examples for every endpoint. " +
                 "Use consistent formatting with proper headers. " +
                 "Target audience: intermediate developers."
);

Console.WriteLine("Instructions:");
Console.WriteLine(identity.Instruction);

Remarks

Instructions define the operational framework for the agent. Good instructions:

  • Specify what tasks the agent should handle.
  • Define constraints and boundaries.
  • Describe the expected output format or style.
  • Include any domain-specific rules.