Windpicker-owo
53e72ecbdb
迁移:1f91967(remove:移除willing系统,移除reply2,移除能量值,移除reply_to改为message)
2025-09-03 21:27:28 +08:00
Windpicker-owo
8149731925
修复代码格式和文件名大小写问题
2025-08-31 20:50:17 +08:00
minecraft1024a
eb1feeeb0b
refactor(cache): 重构工具缓存机制并优化LLM请求重试逻辑
...
将工具缓存的实现从`ToolExecutor`的装饰器模式重构为直接集成。缓存逻辑被移出`cache_manager.py`并整合进`ToolExecutor.execute_tool_call`方法中,简化了代码结构并使其更易于维护。
主要变更:
- 从`cache_manager.py`中移除了`wrap_tool_executor`函数。
- 在`tool_use.py`中,`execute_tool_call`现在包含完整的缓存检查和设置逻辑。
- 调整了`llm_models/utils_model.py`中的LLM请求逻辑,为模型生成的空回复或截断响应增加了内部重试机制,增强了稳定性。
- 清理了项目中未使用的导入和过时的文档文件,以保持代码库的整洁。
2025-08-28 20:10:32 +08:00
minecraft1024a
7ba3b7f34d
refactor(core): remove tool history manager and integrate cache into tool executor
...
Removes the `ToolHistoryManager` and its associated functionalities, including history recording, querying, and prompt generation. This simplifies the architecture by decoupling tool execution history from the core logic.
The tool caching mechanism is now directly integrated into the `ToolExecutor` by wrapping the `execute_tool_call` method. This ensures that caching is applied consistently for all tool executions that have it enabled, improving performance and reducing redundant calls.
- Deletes `src/common/tool_history.py`.
- Removes tool history related functions from `prompt_builder.py` and `tool_api.py`.
- Adds a `wrap_tool_executor` function in `cache_manager.py` to apply caching logic directly to the `ToolExecutor`.
2025-08-28 18:42:17 +08:00
minecraft1024a
5076410a00
Reapply "【迁移】工具系统再完善:工具缓存、ttl支持、自动记录、长期保存、自动清理缓存、将记录与执行分离、api记录查询、时间聊天工具筛选查询..."
...
This reverts commit 3d93bc4079 .
2025-08-27 17:58:18 +08:00
Windpicker-owo
3d93bc4079
Revert "【迁移】工具系统再完善:工具缓存、ttl支持、自动记录、长期保存、自动清理缓存、将记录与执行分离、api记录查询、时间聊天工具筛选查询..."
...
This reverts commit 80ab0c687c .
2025-08-27 12:46:00 +08:00
Windpicker-owo
80ab0c687c
【迁移】工具系统再完善:工具缓存、ttl支持、自动记录、长期保存、自动清理缓存、将记录与执行分离、api记录查询、时间聊天工具筛选查询...
2025-08-27 11:04:20 +08:00
minecraft1024a
1e037e5ce9
feat(maizone): 新增QQ空间互通组功能,根据聊天上下文生成说说
...
引入了全新的“QQ空间互通组”功能。用户可以配置多个群聊为一个互通组。
在通过指令发布说说时,系统会自动获取这些群聊的近期聊天记录作为上下文,从而生成与当前讨论话题更相关的说说内容。
- 在 `config.toml` 中新增了 `[maizone_intercom]` 配置项用于定义互通组。
- 重构并增强了动态(说说)的拉取逻辑,提高了对不同数据格式的兼容性和解析的稳定性。
- 对项目中的多个文件进行了代码清理,移除了未使用的导入,使代码更加整洁。
2025-08-26 20:20:54 +08:00
雅诺狐
f308adcf5b
refactor: 清理代码质量和移除未使用文件
...
- 移除未使用的导入语句和变量
- 修复代码风格问题(空格、格式化等)
- 删除备份文件和测试文件
- 改进异常处理链式调用
- 添加权限系统数据库模型和配置
- 更新版本号至6.4.4
- 优化SQL查询使用正确的布尔表达式
2025-08-24 22:11:20 +08:00
雅诺狐
d46d689c43
数据库重构
2025-08-16 23:43:45 +08:00
雅诺狐
fb41e5b8a0
Update send_api.py
2025-08-15 18:09:10 +08:00
雅诺狐
f502ef6532
更新文档格式
2025-08-14 19:27:40 +08:00
minecraft1024a
9c11dd9b0f
修复emoji_manager.py中的数据库持久化逻辑;更新Maizone插件的作者信息和项目链接。
2025-08-13 11:30:44 +08:00
minecraft1024a
7bf18e3518
更新send_api.py中的文档,增加了参数说明和返回值格式,添加了异常抛出信息
2025-08-13 11:20:46 +08:00
雅诺狐
f340b53782
platform现在可选了
2025-08-13 11:07:19 +08:00
雅诺狐
fe97d897ef
优化项目结构,格式化代码
2025-08-13 09:49:39 +08:00
雅诺狐
4da66f39c9
小修复
2025-08-12 22:38:26 +08:00
雅诺狐
b393ec8d92
Update send_api.py
2025-08-12 18:58:19 +08:00
雅诺狐
5ff2a18612
Update send_api.py
2025-08-12 18:53:46 +08:00
雅诺狐
05cba1bb09
添加了一个发送api
2025-08-12 17:32:45 +08:00
雅诺狐
2d4745cd58
初始化
2025-08-11 19:34:18 +08:00