zhenxun_bot/zhenxun/utils
Rumio 7c153721f0
Some checks failed
检查bot是否运行正常 / bot check (push) Waiting to run
Sequential Lint and Type Check / ruff-call (push) Waiting to run
Sequential Lint and Type Check / pyright-call (push) Blocked by required conditions
Release Drafter / Update Release Draft (push) Waiting to run
Force Sync to Aliyun / sync (push) Waiting to run
Update Version / update-version (push) Waiting to run
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
CodeQL Code Security Analysis / Analyze (${{ matrix.language }}) (none, python) (push) Has been cancelled
♻️ refactor!: 重构LLM服务架构并统一Pydantic兼容性处理 (#2002)
* ♻️ refactor(pydantic): 提取 Pydantic 兼容函数到独立模块

* ♻️ refactor!(llm): 重构LLM服务,引入现代化工具和执行器架构

🏗️ **架构变更**
- 引入ToolProvider/ToolExecutable协议,取代ToolRegistry
- 新增LLMToolExecutor,分离工具调用逻辑
- 新增BaseMemory抽象,解耦会话状态管理

🔄 **API重构**
- 移除:analyze, analyze_multimodal, pipeline_chat
- 新增:generate_structured, run_with_tools
- 重构:chat, search, code变为无状态调用

🛠️ **工具系统**
- 新增@function_tool装饰器
- 统一工具定义到ToolExecutable协议
- 移除MCP工具系统和mcp_tools.json

---------

Co-authored-by: webjoin111 <455457521@qq.com>
2025-08-04 23:36:12 +08:00
..
decorator feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951) 2025-07-03 17:39:13 +08:00
depends feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
echart_utils Compatible with pydantic 2.0 using the pydantic compatibility layer provided by nonebot 2025-01-10 12:19:11 +08:00
github_utils feat(aliyun): 添加阿里云相关配置和文件操作功能 (#1985) 2025-07-17 19:48:33 +08:00
html_template 重构插件商店,支持Gitee插件管理,更新相关逻辑和配置 (#1931) 2025-06-20 19:08:06 +08:00
manager 🐛 修复bot个人介绍重载后不重新读取个人介绍文件 (#1990) 2025-07-24 15:59:28 +08:00
plugin_models 提供新webui api (#1673) 2024-10-03 23:56:17 +08:00
_build_image.py 🚨 Add specific ignore items in pyright ignore 2025-01-10 12:19:11 +08:00
_build_mat.py 首次启动时提供使用web ui方式完全配置 (#1870) 2025-06-16 09:11:41 +08:00
_image_template.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
browser.py feat(http_utils): 重构网络请求工具链,增强稳定性与易用性 (#1951) 2025-07-03 17:39:13 +08:00
common_utils.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
enum.py 引入缓存机制 (#1889) 2025-07-14 22:35:29 +08:00
exception.py feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
http_utils.py feat(http_utils): 优化AsyncHttpx类,解决并发下载问题 (#1968) 2025-07-11 10:13:02 +08:00
image_utils.py chore/cleanup-dependencies (#1763) 2024-12-13 15:00:56 +08:00
limiters.py feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
message.py feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
platform.py 🐛 修复sqlite下的日统计查询和0权限功能调用 (#1943) 2025-07-11 10:07:23 +08:00
pydantic_compat.py ♻️ refactor!: 重构LLM服务架构并统一Pydantic兼容性处理 (#2002) 2025-08-04 23:36:12 +08:00
rules.py 🐛 修复群欢迎消息删除问题 (#1864) 2025-03-03 22:19:34 +08:00
time_utils.py feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
user_agent.py Develop: 完全使用 ruff 替代 isort 与 black (#1757) 2024-12-10 19:49:11 +08:00
utils.py feat(limit, message): 引入声明式限流系统并增强消息格式化功能 (#1978) 2025-07-15 17:13:33 +08:00
withdraw_manage.py Develop: 完全使用 ruff 替代 isort 与 black (#1757) 2024-12-10 19:49:11 +08:00