mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
更改类名,命名更清晰
This commit is contained in:
parent
00143343ab
commit
4d98c99114
@ -214,7 +214,7 @@ class Task(BaseBlock):
|
|||||||
"""检查函数参数"""
|
"""检查函数参数"""
|
||||||
|
|
||||||
|
|
||||||
class AbstractTool(BaseModel):
|
class AICallableTag(BaseModel):
|
||||||
name: str | None = None
|
name: str | None = None
|
||||||
"""工具名称"""
|
"""工具名称"""
|
||||||
parameters: dict[str, Any] | None = None
|
parameters: dict[str, Any] | None = None
|
||||||
@ -267,7 +267,7 @@ class PluginExtraData(BaseModel):
|
|||||||
"""常用sql"""
|
"""常用sql"""
|
||||||
is_show: bool = True
|
is_show: bool = True
|
||||||
"""是否显示在菜单中"""
|
"""是否显示在菜单中"""
|
||||||
smart_tools: list[AbstractTool] | None = None
|
smart_tools: list[AICallableTag] | None = None
|
||||||
"""智能模式函数工具集"""
|
"""智能模式函数工具集"""
|
||||||
|
|
||||||
def to_dict(self, **kwargs):
|
def to_dict(self, **kwargs):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user