Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev
This commit is contained in:
@@ -189,9 +189,8 @@ class ToolExecutor:
|
||||
tool_info["content"] = str(content)
|
||||
# 空内容直接跳过(空字符串、全空白字符串、空列表/空元组)
|
||||
content_check = tool_info["content"]
|
||||
if (
|
||||
(isinstance(content_check, str) and not content_check.strip())
|
||||
or (isinstance(content_check, (list, tuple)) and len(content_check) == 0)
|
||||
if (isinstance(content_check, str) and not content_check.strip()) or (
|
||||
isinstance(content_check, (list, tuple)) and len(content_check) == 0
|
||||
):
|
||||
logger.debug(f"{self.log_prefix}工具{tool_name}无有效内容,跳过展示")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user