✨ Add Chinese localization for tool descriptions#2527
Open
geruihappy-creator wants to merge 8 commits intodevelopfrom
Open
✨ Add Chinese localization for tool descriptions#2527geruihappy-creator wants to merge 8 commits intodevelopfrom
geruihappy-creator wants to merge 8 commits intodevelopfrom
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
YehongPan
reviewed
Feb 14, 2026
|
|
||
|
|
||
| def add_tool_field(tool_info): | ||
| from services.tool_configuration_service import get_local_tools_description_zh |
YehongPan
reviewed
Feb 14, 2026
| name=getattr(tool_class, 'name'), | ||
| description=getattr(tool_class, 'description'), | ||
| description_zh=tool_description_zh, | ||
| params=init_params_list, |
Contributor
YehongPan
reviewed
Feb 14, 2026
Comment on lines
+52
to
64
| init_param_descriptions = { | ||
| "observer": { | ||
| "description": "Message observer", | ||
| "description_zh": "消息观察者" | ||
| }, | ||
| "vlm_model": { | ||
| "description": "The VLM model to use", | ||
| "description_zh": "要使用的 VLM 模型" | ||
| }, | ||
| "storage_client": { | ||
| "description": "Storage client for downloading files", | ||
| "description_zh": "存储客户端,用于下载文件" | ||
| } |
Jasonxia007
reviewed
Feb 24, 2026
| "Get emails from email server. Supports filtering emails by time range and sender (sender must be an email address, not a name or non-ASCII string; subject filtering is not supported due to IMAP limitations)." | ||
| ) | ||
|
|
||
| description_zh = "获取邮件,支持按时间范围和发件人筛选。。受 IMAP 限制,暂不支持按主题筛选。" |
Jasonxia007
reviewed
Feb 24, 2026
| class SendEmailTool(Tool): | ||
| name = "send_email" | ||
| description = "Send email to specified recipients. Supports only HTML formatted email content, and can add multiple recipients, CC, and BCC." | ||
| description = "Send email to specified recipients. Supports only HTML formatted formatted email content, and can add multiple recipients, CC, and BCC." |
Contributor
There was a problem hiding this comment.
Supports only HTML formatted formatted email content
formatted 重复
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

本地工具描述的国际化,在智能体开发、智能体空间和市场页作适配


