refactor: 将多个方法修改为静态方法以提高代码可读性和一致性
This commit is contained in:
@@ -17,7 +17,7 @@ class SendEmojiTool(BaseTool):
|
||||
"required": ["text"],
|
||||
}
|
||||
|
||||
async def execute(self, function_args: Dict[str, Any], message_txt: str) -> Dict[str, Any]:
|
||||
async def execute(self, function_args: Dict[str, Any], message_txt: str = "") -> Dict[str, Any]:
|
||||
text = function_args.get("text", message_txt)
|
||||
return {
|
||||
"name": "send_emoji",
|
||||
|
||||
Reference in New Issue
Block a user