docs(extension-tools): clarify group mute operator hints#811
docs(extension-tools): clarify group mute operator hints#811CookSleep wants to merge 1 commit intoChatLunaLab:v1-devfrom
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 11 minutes and 1 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the GroupMuteTool by refining the Zod schema descriptions for its parameters and simplifying the class-level description. The feedback highlights a discrepancy where the "minimum 1 second" constraint was removed from the documentation despite still being enforced in the code, and it suggests making the operatorUserId field mandatory or providing a default value to prevent potential runtime errors when the field is omitted.
| .number() | ||
| .describe( | ||
| 'Mute duration in seconds, minimum 1 seconds, 0 to unmute' | ||
| 'Duration in seconds. Use 0 to unmute.' |
| .optional() | ||
| .describe( | ||
| 'The ID of the operator who initiated the action. Use 0 for model-initiated actions, -1 for unknown' | ||
| 'The ID of the person who asked for this mute action. Use "0" when you decide to mute on your own. Use the actual user ID when a user explicitly asks you to mute someone else. If a user asks you to mute themselves, also use "0". Use "-1" only when the requester is unclear. If the tool says a user does not have permission, it means this requester does not have permission to ask for the mute.' |
Summary
GroupMuteTool的描述文本,去掉过长的参数说明块operatorUserId的说明文案,补充模型自主操作、用户要求别人禁言、用户要求禁言自己等场景提示Verification