Skip to content

Module nonebot_plugin_marshoai.plugins.builtin_tools.manager


@on_function_call(description='获取已加载的插件列表')

func get_marsho_plugins() -> str

Description: 获取已加载的插件列表

Return: str: 插件列表

Source code or View on GitHub
python
@on_function_call(description='获取已加载的插件列表')
def get_marsho_plugins() -> str:
    reply = '加载的插件列表'
    for p in get_plugins().values():
        if p.metadata:
            reply += f'名称: {p.metadata.name},描述: {p.metadata.description}\n'
        else:
            reply += f'名称: {p.name},描述: 暂无\n'
    return reply

The document is being improved. Suggestions are welcome.