Table of Contents

👉 Try the demo: https://github.com/LM-Kit/lm-kit-net-samples/tree/main/console_net/ai-agents/chatbots/support_persona_chatbot

Persona-Driven Chatbot for C# .NET Applications


🎯 Purpose of the Demo

Minimal chat agent built with AgentTemplates.Chat(model).WithPersonality(...).Build(). A stable system prompt, a name, and a loop.

✨ Key Features

  • AgentTemplates.Chat(LM) factory.
  • .WithPersonality(string) fluent builder method.
  • Agent.Run(input) returning AgentExecutionResult.
  • AgentExecutionResult.Content, .IsSuccess, .Duration, .InferenceCount.

⚙️ Getting Started

cd lm-kit-net-samples/console_net/ai-agents/chatbots/support_persona_chatbot
dotnet run
dotnet run -- "You are a strict reviewer. Always answer with one sentence and a numeric score."

📚 Additional Resources

Share