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
UnCLAS-Prommer
37bf904c45
tools 文档
2025-07-25 14:33:33 +08:00
UnCLAS-Prommer
6a7cf71d1d
command文档
2025-07-25 14:06:41 +08:00
UnCLAS-Prommer
a82de0a50e
action文档
2025-07-25 00:08:00 +08:00
SengokuCola
6c91b95314
better:新增log前缀映射,优化emoji的显示,加强了emoji的识别
2025-07-24 04:54:47 +08:00