feat: 更新下载工具和搜索结果工具的描述,添加可选展示过滤选项参数,优化SKILL.md

This commit is contained in:
PKC278
2026-03-18 16:30:31 +08:00
parent cedb0f565c
commit 4f3eaa12d5
5 changed files with 55 additions and 27 deletions

View File

@@ -131,13 +131,13 @@ class MoviePilotToolsManager:
try:
return int(value)
except (ValueError, TypeError):
logger.warning(f"无法将参数 {key}='{value}' 转换为整数,保持原值")
logger.warning(f"无法将参数 {key}='{value}' 转换为整数,返回 None")
return None
if field_type == "number" and isinstance(value, str):
try:
return float(value)
except (ValueError, TypeError):
logger.warning(f"无法将参数 {key}='{value}' 转换为浮点数,保持原值")
logger.warning(f"无法将参数 {key}='{value}' 转换为浮点数,返回 None")
return None
if field_type == "boolean":
if isinstance(value, str):