添加函数调用支持,重构插件加载机制,优化函数描述和模块路径管理

This commit is contained in:
2024-12-17 19:32:51 +08:00
parent 339d0e05bf
commit 7893f28259
7 changed files with 127 additions and 21 deletions

View File

@ -66,6 +66,7 @@ def load_plugin(module_path: str | Path) -> Optional[Plugin]:
name=module.__name__,
module=module,
module_name=module_path,
module_path=module.__file__,
)
_plugins[plugin.name] = plugin