✨ feat(plugins): Enhance PluginExtraData with ignore_statistics and limits features (#2098)

- Added ignore_statistics field to PluginExtraData to control call statistics.
- Introduced limits parameter in PluginExtraData for rate limiting plugin usage.
- Updated relevant plugins to utilize the new features for better control over plugin statistics and usage limits.
This commit is contained in:
HibiKier
2026-02-06 16:46:01 +08:00
committed by GitHub
parent 5c067bcf04
commit bc8e1659ae
8 changed files with 85 additions and 8 deletions
+2
View File
@@ -261,6 +261,8 @@ class PluginExtraData(BaseModel):
"""常用sql"""
is_show: bool = True
"""是否显示在菜单中"""
ignore_statistics: bool = False
"""是否不统计调用次数"""
smart_tools: list[AICallableTag] | None = None
"""智能模式函数工具集"""
introduction: str | None = None