# utils | 小棉智能
可爱，智能且易扩展

Skip to content

# 模块 `nonebot_plugin_marshoai.plugins.builtin_tools.utils` ​

### async func `make_html_summary(html_content: str, language: str = 'english', length: int = 3) -> str` ​

说明: 使用html内容生成摘要

参数:

> - html_content (str): html内容
> - language (str, optional): 语言. Defaults to "english".
> - length (int, optional): 摘要长度. Defaults to 3.

返回: str: 摘要

源代码 或 在GitHub上查看
python

    async def make_html_summary(html_content: str, language: str='english', length: int=3) -> str:
        loop = asyncio.get_event_loop()
        return await loop.run_in_executor(executor, _make_summary, html_content, language, length)