Commit Graph

8 Commits

Author SHA1 Message Date
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
ikun两年半
897ec0ac10 更改了文档中机器人的名字喵~ 2025-11-19 22:47:25 +08:00
UnCLAS-Prommer
84216a4df7 api文档更新,注释更新 2025-07-31 15:01:31 +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
3155c1bf24 小改 2025-07-26 17:18:59 +08:00
UnCLAS-Prommer
5c42ac08bc 文档index 2025-07-25 22:14:42 +08:00
SengokuCola
3fcebf6d4f add:新增文档变更 2025-06-20 01:41:23 +08:00