fix #4097 & show tools added by Context.add_llm_tools in web panel
#4098
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modifications / 改动点
handler_module_path统一移至astrbot/core/star/star_manager.py处理,以解决模块路径差异问题Context.add_llm_tools注册的 Tool 能够展示在网页上Screenshots or Test Results / 运行截图或测试结果
Checklist / 检查清单
requirements.txt和pyproject.toml文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations inrequirements.txtandpyproject.toml.Summary by Sourcery
通过在 star manager 中集中管理 LLM 工具 handler 模块路径的赋值,并在加载时与插件元数据对齐,修复其路径处理问题。
Bug Fixes:
Enhancements:
Original summary in English
Summary by Sourcery
Fix LLM tool handler module path handling by centralizing its assignment in the star manager and aligning it with plugin metadata during load.
Bug Fixes:
Enhancements: