feat(web_search): 新增 Metaso 搜索引擎支持

为联网搜索工具集成了新的搜索引擎 Metaso,为用户提供更多搜索选择。

- 在搜索引擎基类 `BaseSearchEngine` 中添加了可选的 `read_url` 方法,为未来支持直接读取网页内容奠定基础。
- 更新了插件加载、工具执行逻辑和配置文件模板,以完整支持 Metaso 引擎。
- 将默认回复生成器的任务超时时间从 15 秒延长至 45 秒,以适应联网搜索等耗时较长的操作,提高稳定性。
This commit is contained in:
tt-P607
2025-10-18 00:46:17 +08:00
parent 39e672a1d5
commit 72ea362e29
6 changed files with 126 additions and 6 deletions

View File

@@ -1256,7 +1256,7 @@ class DefaultReplyer:
}
# 设置超时
timeout = 15.0 # 秒
timeout = 45.0 # 秒
async def get_task_result(task_name, task):
try: