Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coderwanfeng/transtools
将内容从一种语言翻译为另一种语言。当用户提到翻译、中英互译、多语言翻译、自动翻译时使用。
Passed 22 of 23 test cases with the skill, and 5 of 23 without it.
and 13 more in the full report
17 fixed5 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 17 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write Python code using the office tool library that translates '服务器出现异常,请稍后重试' to English and assigns the output string to a variable named output_text.
| Checked | Without skill | With skill |
|---|---|---|
| Assigns the transtools function call result to variable output_text. | Missed | Passed |
| Passes 'en' as the to_lang parameter. | Missed | Passed |
The instructions your model reads when the skill loads.
将内容从一种语言翻译为另一种语言
使用翻译引擎将内容从源语言翻译为目标语言。
office/skills/tools/transtools/
from skills.tools import transtools
result = transtools(
to_lang='en',
content='你好世界',
from_lang='zh'
)
print(result)
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
to_lang | str | 是 | - | 目标语言 |
content | str | 是 | - | 待翻译的内容 |
from_lang | str | 否 | 'zh' | 源语言(默认中文) |
str:翻译后的结果
test cases passed, vs 5 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.