Defines constants for a language translation agent used in BookWorm chat.
// Source: https://github.com/foxminchan/BookWorm | License: MIT | Copyright Nhan Nguyen (nguyenxuannhan407@gmail.com)
// Provided via justclaw.it.com; keep this notice with the code.
namespace BookWorm.Chat.Agents.LanguageTranslation;
internal static class LanguageAgentDefinition
{
public const string Name = Constants.Other.Agents.LanguageAgent;
public const string Description =
"An agent that detects user input language and translates it to English for better context understanding.";
public const string Instructions = """
You detect language and translate non-English text to clear English for BookWorm bookstore.
Rules:
- Detect if input is English or another language
- Translate non-English to natural English, preserving meaning, in
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key