jxxghp
6c5fae56d9
Add agent image support for Telegram and Slack
2026-04-11 20:40:02 +08:00
jxxghp
75fca971d4
refactor(agent): 重命名 can_edit_message 为 is_auto_flushing 更贴切语义
2026-04-09 23:29:29 +08:00
jxxghp
22f3244bf5
fix(agent): 流式+啰嗦模式下渠道不支持编辑时立即发送工具消息
...
渠道不支持编辑时没有定时刷新任务,emit 到 buffer 的内容不会被推送。
新增 can_edit_message 属性区分两种模式:支持编辑的继续 emit 到 buffer,
不支持编辑的 take 出 agent 文字与工具消息合并独立发送。
2026-04-09 23:26:39 +08:00
jxxghp
9675d199f9
fix(agent): 非流式模式下不发送任何工具中间消息
2026-04-09 22:48:03 +08:00
jxxghp
78e8faa203
fix(agent): 非流式模式下啰嗦模式仍需发送工具调用中间消息
...
啰嗦模式+渠道不支持编辑时,虽然 is_streaming 为 False,
但 astream 仍会将 token 写入 buffer,需要在工具调用时
取出 agent 文字与工具消息合并发送
2026-04-09 22:23:00 +08:00
jxxghp
d5ed9bc654
fix(agent): 简化非流式模式下工具调用的消息处理逻辑
...
非流式模式下使用 ainvoke 执行,无流式 token 产出,
不需要操作 stream_handler 或发送中间消息
2026-04-09 22:20:09 +08:00
jxxghp
770065d9ed
feat(agent): 优化Agent流式输出与工具消息发送逻辑
...
- 新增 _should_stream() 方法,根据运行环境决定是否启用流式输出:
后台模式不启用;渠道支持编辑启用;啰嗦模式开启时也启用
- 非流式模式下使用非流式LLM + ainvoke,避免不必要的流式开销
- 非啰嗦模式下工具调用时不发送任何中间消息(agent文字和工具提示),直接清掉缓冲区
2026-04-09 22:12:20 +08:00
jxxghp
3c7cd2186f
查询订阅历史工具有名称过滤时不分页直接返回所有匹配结果
2026-04-08 07:58:54 +08:00
jxxghp
5acfd683b9
agent工具支持翻页及取消数量限制
2026-04-08 07:41:34 +08:00
jxxghp
6b01901a4a
更新 search_web.py
2026-04-08 07:29:30 +08:00
jxxghp
1ca54afd6c
更新 search_person.py
2026-04-08 07:27:29 +08:00
jxxghp
9c75c2d22e
更新 search_media.py
2026-04-08 07:26:54 +08:00
jxxghp
79ec3ed2c3
更新 list_directory.py
2026-04-08 07:21:37 +08:00
jxxghp
7072d2cfe8
更新 query_installed_plugins.py
2026-04-08 07:15:13 +08:00
jxxghp
c0c08b0b84
更新 query_subscribe_history.py
2026-04-08 07:12:39 +08:00
jxxghp
01329195ee
更新 query_subscribes.py
2026-04-08 07:11:45 +08:00
jxxghp
ac9c9598f4
feat(agent): add tools for querying and updating custom identifiers
2026-04-07 09:00:15 +08:00
jxxghp
902394f86e
fix(agent): resolve circular import by lazy-importing Command in run_slash_command and list_slash_commands
2026-04-07 00:16:09 +08:00
jxxghp
9fefd807f9
refactor(agent): rename list_all_commands to list_slash_commands and skill to command-dispatch
2026-04-07 00:00:10 +08:00
jxxghp
a8fb4a6d84
refactor(agent): rename run_plugin_command to run_slash_command to avoid confusion with execute_command (shell)
2026-04-06 23:53:49 +08:00
jxxghp
7806267e92
feat(agent): add command-execute skill for intelligent command dispatch
...
- Enhance run_plugin_command tool to support all registered commands (system preset + plugin + other), not just plugin commands
- Add list_all_commands tool to discover all available commands with descriptions and categories
- Add command-execute skill that guides the agent to recognize user intent from natural language and match it to available system/plugin commands
2026-04-06 23:45:48 +08:00
jxxghp
663e37bd03
refactor: SendMessageTool message_type 改为消息标题
2026-04-04 07:42:36 +08:00
jxxghp
d7a5c32b08
feat: 整理失败时AI智能体自动重试
...
- 新增 delete_transfer_history 工具供智能体删除失败历史记录
- 新增 transfer-failed-retry 技能引导智能体执行重试流程
- 新增 AI_AGENT_RETRY_TRANSFER 配置项控制是否启用
- AgentManager 新增 retry_failed_transfer() 方法创建独立会话执行重试
- 整理失败和媒体未识别时自动触发智能体重试
2026-04-03 13:33:27 +08:00
jxxghp
84b938c0d2
fix: 后台模式不发送工具调用消息
2026-03-31 18:25:55 +08:00
jxxghp
e61299f748
refactor: 移除多余的空行,优化类型导入及方法为静态方法
2026-03-30 17:07:45 +08:00
jxxghp
cbff2fed17
agent工具增加管理员权限校验:查询站点、查询已安装插件、查询插件能力、查询站点用户数据、刮削元数据
2026-03-30 11:54:48 +08:00
jxxghp
70109635c7
feat(agent): 接入Exa API用于网络搜索
2026-03-30 07:11:29 +08:00
jxxghp
7bd775130e
fix: 修复QQ渠道key映射
2026-03-29 10:48:23 +08:00
jxxghp
4bba7dbe76
fix: 修复QQ渠道名称为qq
2026-03-29 10:47:16 +08:00
jxxghp
0cab21b83c
feat(agent): 为需要管理员权限的工具添加 require_admin 字段
...
- ExecuteCommandTool: 执行命令行
- DeleteDownloadHistoryTool: 删除下载历史
- EditFileTool: 编辑文件
- WriteFileTool: 写入文件
- TransferFileTool: 传输文件
- UpdateSiteTool: 更新站点
- UpdateSiteCookieTool: 更新站点Cookie
- UpdateSubscribeTool: 更新订阅
- DeleteSubscribeTool: 删除订阅
- DeleteDownloadTool: 删除下载
- ModifyDownloadTool: 修改下载
- RunSchedulerTool: 运行定时任务
- RunWorkflowTool: 运行工作流
- RunPluginCommandTool: 运行插件命令
- SendMessageTool: 发送消息
2026-03-29 10:46:35 +08:00
jxxghp
ca9cbc1160
fix(agent): 修复 MessageChannel.QQBot 不存在的错误
2026-03-29 10:38:52 +08:00
jxxghp
02439f55a9
feat(agent): 增加工具执行权限控制
...
- 工具执行前检查用户权限
- 支持渠道管理员名单验证
- 支持系统管理员验证
- 支持渠道配置用户ID验证
2026-03-29 10:30:09 +08:00
jxxghp
f70eaf9363
feat(agent): 添加reset方法支持流式消息原地更新
2026-03-28 23:08:06 +08:00
jxxghp
bfea0174dd
refactor: 优化工具消息发送逻辑
2026-03-28 22:38:20 +08:00
jxxghp
8d7ff2bd1d
feat(agent): 新增AI_AGENT_VERBOSE开关,控制工具调用过程回复及提示词输出
2026-03-27 20:12:01 +08:00
jxxghp
a25c709927
新增agent删除下载历史记录工具
2026-03-27 11:50:46 +08:00
jxxghp
a1fa469026
feat: 新增插件相关agent工具(查询插件、查询插件能力、运行插件命令)
2026-03-26 02:45:03 +08:00
jxxghp
0399ab73cf
feat: 后台任务(定时唤醒)跳过流式输出,仅广播最终结果
2026-03-25 17:10:48 +08:00
jxxghp
dcca318733
feat: QuerySitesTool 增加返回 cookie 字段
2026-03-24 22:53:30 +08:00
jxxghp
1249929b6a
feat: 新增Agent浏览器操作工具(browse_webpage),支持通过Playwright控制浏览器进行网页交互
2026-03-24 21:06:41 +08:00
jxxghp
17373bc0fe
fix: 优化Agent消息排版
2026-03-24 20:21:58 +08:00
jxxghp
3c7fdfec3c
更新 base.py
2026-03-24 19:14:34 +08:00
jxxghp
cfc8d26558
fix: 修复查询下载任务工具访问TransferTorrent不存在字段的问题
2026-03-24 18:53:08 +08:00
jxxghp
1c16b8bfec
feat: 查询下载任务工具支持按标签过滤
2026-03-24 18:45:47 +08:00
jxxghp
aae50004b1
feat: 新增修改下载任务Agent工具,查询下载任务支持返回标签
...
- 新增 modify_download Agent工具,支持通过hash修改下载任务的标签、开始和暂停下载
- 在 ChainBase 及三个下载器模块中新增 set_torrents_tag 方法
- DownloadingTorrent schema 新增 tags 字段
- 各下载器模块构建 DownloadingTorrent 时填充 tags
- query_download_tasks 工具输出中新增 tags 字段
2026-03-24 18:33:06 +08:00
jxxghp
78b8b30351
rollback aiopathlib
2026-03-24 09:06:44 +08:00
jxxghp
e82494c444
feat(agent): support skills
2026-03-24 08:48:27 +08:00
jxxghp
5744228a9d
更新 base.py
2026-03-23 22:31:27 +08:00
jxxghp
17519d5a96
add TAVILY_API_KEYS
2026-03-23 22:13:44 +08:00
jxxghp
6ca6a94631
更新 base.py
2026-03-23 20:01:38 +08:00