TypeDialog/agents/translator.agent.mdx

33 lines
607 B
Plaintext
Raw Normal View History

---
@agent {
role: translator,
llm: claude-3-5-sonnet-20241022,
max_tokens: 1000,
temperature: 0.3
}
@input text: String
@input source_lang: String
@input target_lang: String
@validate output {
min_length: 5,
format: text
}
---
# Translation Task
Translate the following text from {{ source_lang }} to {{ target_lang }}.
**Source text** ({{ source_lang }}):
{{ text }}
Requirements:
- Maintain the original meaning and tone
- Use natural, idiomatic {{ target_lang }}
- Preserve any technical terms appropriately
- Keep formatting if present
Provide only the translation, no explanations.