基于群聊与私聊上下文的人设回复插件,支持作息模拟、联网检索、风格学习、主动私聊、贴图、画像与 Agent 工具调用。
Project description
nonebot-plugin-shiro-personification
基于 NoneBot2 和 OneBot V11 的拟人化聊天插件,围绕群聊与私聊上下文构建人设回复,支持作息模拟、联网检索、风格学习、主动私聊、贴图、画像、长期记忆与 Agent 工具调用。
特性
- 群聊回复、随机插话、戳一戳响应、私聊上下文记忆
- Agent 工具调用:联网搜索、天气、时间、新闻、群信息、好友申请、定时任务
- 并行研究工具:面向复杂查询和生图准备并发聚合联网、Wiki、图片与视觉资料
- 用户画像、长期记忆、记忆宫殿、群聊风格学习、话题摘要与上下文压缩
- 主动私聊、群空闲主动发话、Qzone 说说、远程 skill 审批与插件知识库
- 图片生成、贴图库自动标注、语义选图、视觉分析与 LLM 决策 TTS 语音回复
安装
nb plugin install nonebot-plugin-shiro-personification
或:
pip install nonebot-plugin-shiro-personification
环境要求
- Python
>=3.10 - NoneBot2
- OneBot V11 适配器
配置
- 完整配置表见 CONFIG.md,其中包含每一个配置项的示例写法、默认值与备注。
- 默认使用
nonebot-plugin-localstore的数据目录;如需兼容旧部署,可通过personification_data_dir显式覆盖。
常用命令
拟人帮助查看配置拟人开关 [开启/关闭]拟人语音 [开启/关闭]拟人联网 [开启/关闭]拟人主动消息 [开启/关闭]开启拟人/关闭拟人开启表情包/关闭表情包拟人作息 [开启/关闭/全局开启/全局关闭]学习群聊风格查看群聊风格 [群号]查看画像/刷新画像群好感/设置群好感 [群号] [数值]清除记忆 [全局/@用户/用户ID]完全清除记忆永久拉黑 [用户ID/@用户]取消永久拉黑 [用户ID/@用户]发个说说/persona help
联动与兼容
nonebot-plugin-htmlrender作为默认依赖声明;不可用时相关渲染能力会自动降级,不影响主插件加载。nonebot-plugin-shiro-signin暂未发布,因此当前不会作为安装文档中的可选 extra 提供。- 未安装签到联动插件时,好感度、称号、黑名单等联动能力会自动降级,不影响主插件加载。
- 依赖其他插件时统一使用
require(...)声明,避免因普通import提前导入导致插件加载失败。
更新
0.5.2
- 同步本地
personification新功能:并行研究工具、图片生成 skill、模型路由、回复风格策略与最新测试。 - TTS 支持由 LLM 在合成前决策
voice/text/block,并加入内置安全策略与自定义禁读策略。 - 修复
nonebot_plugin_htmlrender加载顺序,避免普通 import 提前导入后再次require()时报错。 - 去除普通聊天意图兜底中的关键词语义判断,保持回复、YAML、TTS 与贴图路径由统一语义帧驱动。
0.5.1
- 将本地
personification的当前功能面、测试与配置项完整同步到发布包nonebot-plugin-shiro-personification。 - 新增稳定的
web_console_api接口,供nonebot-plugin-shiro-web-console在在线版与本地版之间统一读取状态、全局配置、群配置与统计信息。 - 补齐轻量模型、视觉/视频理解回退、插件知识库构建、图片输入模式等配置文档,并修正文档中对数据目录配置的旧说明。
0.5.0
- 完整迁移本地
personification功能到发布包,补齐长期记忆、记忆宫殿、TTS、远程 skill 审批、插件知识库等能力。 - 修复插件商店加载问题,避免
nonebot_plugin_htmlrender因提前导入导致后续require()失败。 - 统一改为使用
nonebot-plugin-localstore的get_plugin_data_dir()管理插件数据目录。 - 放宽
pydantic依赖限制,并修正配置模型以兼容pydantic v1/v2。 - 增补完整配置文档,覆盖全部配置项、示例写法、默认值与备注。
- 文档中明确说明签到联动插件暂未发布,相关能力仅保留兼容降级逻辑。
0.4.0
- 完整迁移本地
personification开发版架构到在线版包。 - 新增 Agent 工具调用、用户画像、自定义 skills、群摘要与上下文压缩。
- 新增群空闲主动发话、好友申请判定、贴图库自动标注与语义选图。
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_shiro_personification-0.5.2.tar.gz.
File metadata
- Download URL: nonebot_plugin_shiro_personification-0.5.2.tar.gz
- Upload date:
- Size: 499.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34c32b9c05e4c8fe7cff1d8f9fb3c2acb489a5c0c9db37c6554d83ccdc5c6899
|
|
| MD5 |
70e76f1bbf178cd697be0289cbe23eb2
|
|
| BLAKE2b-256 |
eccbb48e375b720b61dc059705844d74dbbda4a5c307eae66f8a24b9cce42b71
|
Provenance
The following attestation bundles were made for nonebot_plugin_shiro_personification-0.5.2.tar.gz:
Publisher:
publish.yml on luojisama/nonebot-plugin-personification
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_shiro_personification-0.5.2.tar.gz -
Subject digest:
34c32b9c05e4c8fe7cff1d8f9fb3c2acb489a5c0c9db37c6554d83ccdc5c6899 - Sigstore transparency entry: 1399500645
- Sigstore integration time:
-
Permalink:
luojisama/nonebot-plugin-personification@c56f0cd3773d4a65387810c1169bb8e2d3da440e -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/luojisama
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c56f0cd3773d4a65387810c1169bb8e2d3da440e -
Trigger Event:
push
-
Statement type:
File details
Details for the file nonebot_plugin_shiro_personification-0.5.2-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_shiro_personification-0.5.2-py3-none-any.whl
- Upload date:
- Size: 651.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c559ddc509c3e13926a17e9e42fed0d4212d071e3ee4f5aaff3111daaf773fc4
|
|
| MD5 |
1e97a236c98fe63aa4e033ab75bf52dd
|
|
| BLAKE2b-256 |
6fb737f3e6d0efc1c5e79dac1e6567676ac37254cd386bd98c7ff4d81f28006e
|
Provenance
The following attestation bundles were made for nonebot_plugin_shiro_personification-0.5.2-py3-none-any.whl:
Publisher:
publish.yml on luojisama/nonebot-plugin-personification
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_shiro_personification-0.5.2-py3-none-any.whl -
Subject digest:
c559ddc509c3e13926a17e9e42fed0d4212d071e3ee4f5aaff3111daaf773fc4 - Sigstore transparency entry: 1399500655
- Sigstore integration time:
-
Permalink:
luojisama/nonebot-plugin-personification@c56f0cd3773d4a65387810c1169bb8e2d3da440e -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/luojisama
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c56f0cd3773d4a65387810c1169bb8e2d3da440e -
Trigger Event:
push
-
Statement type: