Windpicker-owo
963bcd19e1
feat(action): 重构 Action 激活机制并添加 go_activate() 方法
...
引入新的 Action 激活机制,允许通过重写 go_activate() 方法来自定义激活逻辑。提供了三个工具函数:
- _random_activation(): 随机概率激活
- _keyword_match(): 关键词匹配激活
- _llm_judge_activation(): LLM 智能判断激活
主要变更:
- 在 BaseAction 中添加 go_activate() 抽象方法和相关工具函数
- 更新 ActionModifier 使用新的激活判断逻辑
- 在 hello_world_plugin 中添加新的激活方式示例
- 更新文档说明新的激活机制
- 保持向后兼容,旧的激活类型配置仍然可用
BREAKING CHANGE: Action 激活判断现在通过 go_activate() 方法进行,旧的激活类型字段已标记为废弃但仍然兼容
2025-11-19 23:22:46 +08:00
minecraft1024a
cca07bd16e
refactor: 将项目名称从 MaiBot 重命名为 MoFox-Bot
...
本次更新在整个代码库范围内将项目名称 "MaiBot" 及其相关变体(如 "maibot")统一重命名为 "MoFox-Bot"。
主要变更包括:
- 修改配置文件、模板和日志输出中的项目名称。
- 更新文档、注释和用户可见的字符串,以反映新的品牌名称。
- 调整插件元数据和描述。
2025-11-19 23:21:44 +08:00
Windpicker-owo
3e30180b04
更新event doc
2025-11-19 23:01:07 +08:00
minecraft1024a
11ecbf0a25
docs: remove outdated and unused documentation files
...
A significant number of documentation files, including design documents, user guides, and old images, have been removed to clean up the repository and eliminate outdated information. This reduces clutter and ensures that the documentation accurately reflects the current state of the project.
Key removals include:
- `memory_system_design_v3.md`
- `model_configuration_guide.md`
- `PERMISSION_SYSTEM.md`
- `CONTRIBUTE.md`
- `vector_db_usage_guide.md
2025-11-19 22:49:49 +08:00
minecraft1024a
6ca85ebc7f
docs(plugins): remove outdated tool documentation
...
Removes the `tool-components.md` and `tool_caching_guide.md` files as they are no longer relevant after recent refactoring of the tool and caching systems. This cleanup ensures the documentation stays current with the codebase.
2025-11-19 22:49:47 +08:00
minecraft1024a
a645e766ca
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-11-19 22:49:46 +08:00
minecraft1024a
1e5a0ef328
替换名字
2025-11-19 22:49:21 +08:00
minecraft1024a
6b53560a7e
feat(tool_system): implement declarative caching for tools
...
This commit refactors the tool caching system to be more robust, configurable, and easier to use. The caching logic is centralized within the `wrap_tool_executor`, removing the need for boilerplate code within individual tool implementations.
Key changes:
- Adds `enable_cache`, `cache_ttl`, and `semantic_cache_query_key` attributes to `BaseTool` for declarative cache configuration.
- Moves caching logic from a simple history-based lookup and individual tools into a unified handling process in `wrap_tool_executor`.
- The new system leverages the central `tool_cache` manager for both exact and semantic caching based on tool configuration.
- Refactors `WebSurfingTool` and `URLParserTool` to utilize the new declarative caching mechanism, simplifying their code.
2025-11-19 22:48:37 +08:00
ikun两年半
fc3412a2fa
更改了文档中机器人的名字喵~
2025-11-19 22:47:36 +08:00
ikun两年半
a1f5753a58
笨蛋猫猫又有几个地方没改喵……
2025-11-19 22:47:35 +08:00
ikun两年半
c6f242e31d
笨蛋猫猫又有几个地方忘记改了喵……
2025-11-19 22:47:32 +08:00
ikun两年半
68cd87e7d1
更改了文档中机器人的名字喵
2025-11-19 22:47:31 +08:00
ikun两年半
dfa088473c
更改了文档中机器人的名字喵~
2025-11-19 22:47:29 +08:00
ikun两年半
897ec0ac10
更改了文档中机器人的名字喵~
2025-11-19 22:47:25 +08:00
ikun两年半
7298cfbb30
笨蛋猫猫又有一点忘改了喵……
2025-11-19 22:47:24 +08:00
ikun两年半
df77fb962a
更改了文档中机器人的名字喵~
2025-11-19 22:47:23 +08:00
雅诺狐
ab3a36bfa7
全面更换orjson
2025-11-19 22:47:10 +08:00
Windpicker-owo
f65049d1de
修复post_llm,以及event使用说明
2025-11-19 22:46:32 +08:00
minecraft1024a
aa8906b491
feat(deps): 实现依赖包智能别名解析
...
引入了依赖包智能别名解析机制,以解决 Python 生态中常见的安装名与导入名不一致的问题(如 `beautifulsoup4` -> `bs4`)。
当通过包名直接导入失败时,依赖管理器会自动查询一个内置的别名映射表,并尝试使用别名再次导入。这大大提升了开发者在定义简单字符串格式依赖时的体验,减少了因名称不一致导致的依赖检查失败。
同时,更新了相关文档,详细说明了该功能的工作原理、解决了什么问题,并更新了最佳实践。
2025-11-19 22:43:48 +08:00
minecraft1024a
c9a513d037
更新依赖管理配置,新增使用PyPI镜像源的选项以加速包下载,优化文档以清晰描述镜像源和代理设置,调整相关代码以支持新的配置项。
2025-11-19 22:36:01 +08:00
minecraft1024a
d29a57f1a4
优化依赖管理配置,移除不必要的allowed_auto_install选项,更新文档以更清晰地描述自动安装功能的主开关。调整相关代码以简化逻辑,确保自动安装行为通过单一配置控制。
2025-11-19 22:36:00 +08:00
minecraft1024a
8ed15c8199
新增插件Python依赖管理系统,支持自动检查和安装依赖,优化依赖配置和错误处理,更新相关文档和示例代码。
2025-11-19 22:35:58 +08:00
雅诺狐
a588a2a695
添加了一个发送api
2025-11-19 22:35:26 +08:00
UnCLAS-Prommer
615965b1bd
文档更新
2025-08-04 22:44:46 +08:00
UnCLAS-Prommer
8b67fac8da
文档和tool适配
2025-08-03 15:47:35 +08:00
UnCLAS-Prommer
84216a4df7
api文档更新,注释更新
2025-07-31 15:01:31 +08:00
UnCLAS-Prommer
baaf0262b3
文档更新,changelog更新
2025-07-31 14:28:16 +08:00
UnCLAS-Prommer
16c644a666
转换原来的tools到新的(虽然没转)
2025-07-29 00:15:29 +08:00
UnCLAS-Prommer
97a10c554f
修复导入爆炸和文档错误
2025-07-28 13:09:33 +08:00
UnCLAS-Prommer
493e9b58a3
index update
2025-07-28 12:48:47 +08:00
UnCLAS-Prommer
64c282d0e8
index update
2025-07-28 12:44:23 +08:00
UnCLAS-Prommer
c0375f5dd9
合并utils_api
2025-07-28 12:37:37 +08:00
UnCLAS-Prommer
d643a85a0a
send_api_doc与reply_to修改
2025-07-28 11:47:32 +08:00
UnCLAS-Prommer
d8191c493a
plugin_manage_api_doc
2025-07-27 23:16:54 +08:00
UnCLAS-Prommer
df1090156f
component_mamage_api_doc
2025-07-27 23:12:46 +08:00
UnCLAS-Prommer
6a57ec1d5d
person_api_doc
2025-07-27 22:32:19 +08:00
UnCLAS-Prommer
55ce050cc2
message_api_doc
2025-07-27 22:11:14 +08:00
UnCLAS-Prommer
e893b62580
logging_api_doc
2025-07-27 17:16:25 +08:00
UnCLAS-Prommer
61e5014c6b
llm_api_doc
2025-07-27 17:10:50 +08:00
UnCLAS-Prommer
96d7ad527a
generator修改与文档
2025-07-27 16:59:33 +08:00
UnCLAS-Prommer
5470f68f4a
emoji_api_doc
2025-07-27 14:42:04 +08:00
UnCLAS-Prommer
d872d63feb
database_api_doc
2025-07-27 13:33:16 +08:00
UnCLAS-Prommer
dc1b996321
config_api_doc
2025-07-27 12:54:37 +08:00
UnCLAS-Prommer
c3d9f53cb2
chat_api_doc
2025-07-27 10:23:06 +08:00
UnCLAS-Prommer
3155c1bf24
小改
2025-07-26 17:18:59 +08:00
UnCLAS-Prommer
ecfa25bf5a
移除了dependency_manager,dependency文档修改
2025-07-26 17:13:12 +08:00
UnCLAS-Prommer
5c42ac08bc
文档index
2025-07-25 22:14:42 +08:00
UnCLAS-Prommer
5862feffcc
config文档
2025-07-25 18:37:06 +08:00
UnCLAS-Prommer
ca503fbd9b
quick start 文档和管理插件更新
2025-07-25 17:35:00 +08:00
UnCLAS-Prommer
5182609ca4
manifest说明文档
2025-07-25 14:47:40 +08:00