更改类名,命名更清晰

This commit is contained in:
Chenzhipeng 2025-02-14 18:44:45 +08:00
parent 00143343ab
commit 4d98c99114

View File

@ -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):