mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
chore: cleanup tools, remove useless code (#4833)
This commit is contained in:
@@ -326,14 +326,6 @@ class Tool(BaseModel, ABC):
|
||||
|
||||
return parameters
|
||||
|
||||
def is_tool_available(self) -> bool:
|
||||
"""
|
||||
check if the tool is available
|
||||
|
||||
:return: if the tool is available
|
||||
"""
|
||||
return True
|
||||
|
||||
def create_image_message(self, image: str, save_as: str = '') -> ToolInvokeMessage:
|
||||
"""
|
||||
create an image message
|
||||
|
||||
Reference in New Issue
Block a user