tessl install tessl/pypi-googletrans@4.0.0An unofficial Google Translate API for Python providing free text translation and language detection capabilities
Agent Success
Agent success rate when using this tile
100%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
99%
Build a simple translation service that properly manages resources when translating text between languages.
Your service should:
The function should accept:
text: The text to translatesource_lang: The source language code (e.g., "en", "ko", "ja")dest_lang: The destination language code@generates
async def translate_text(text: str, source_lang: str, dest_lang: str) -> str:
"""
Translates text from source language to destination language.
Args:
text: The text to translate
source_lang: Source language code (e.g., "en", "ko", "ja")
dest_lang: Destination language code
Returns:
The translated text as a string
"""
passProvides translation capabilities.
@satisfied-by