chore: cleanup tools, remove useless code (#4833)

This commit is contained in:
Yeuoly 2024-05-31 14:19:59 +08:00 • committed by GitHub
commit 85698ca4f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 106 deletions

View file

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