Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zhalslar/astrbot_plugin_portrayal
/ functions
Functions
54 in github.com/Zhalslar/astrbot_plugin_portrayal
⨍
Functions
54
◇
Types & classes
14
↓ 29 callers
Method
get
(self, user_id: str)
core/db.py:37
↓ 3 callers
Method
__init__
(self, data: MutableMapping[str, Any])
core/config.py:48
↓ 3 callers
Method
_schema
(cls)
core/config.py:32
↓ 3 callers
Method
is_protected_user
检查用户是否在保护名单中
core/config.py:152
↓ 3 callers
Method
to_text
(self)
core/model.py:55
↓ 2 callers
Method
__setattr__
(self, key: str, value: Any)
core/config.py:85
↓ 2 callers
Method
_fields
(cls)
core/config.py:36
↓ 2 callers
Method
_get_user_cache
(self, group_id: str, user_id: str)
core/message.py:70
↓ 2 callers
Method
_user_key
(self, group_id: str, user_id: str)
core/message.py:67
↓ 2 callers
Method
clear_cache
(self)
core/message.py:83
↓ 2 callers
Method
save_config
保存配置到磁盘(仅允许在根节点调用)
core/config.py:97
↓ 2 callers
Method
set
(self, profile: UserProfile)
core/db.py:40
↓ 1 callers
Method
_build_portrait_prompt
( self, texts: list[str], profile: UserProfile, )
core/llm.py:44
↓ 1 callers
Method
_call_llm
( self, *, system_prompt: str, prompt: str, profile: UserProfile,
core/llm.py:62
↓ 1 callers
Method
_collect_messages
将一页群消息拆分并缓存到各个用户
core/message.py:91
↓ 1 callers
Method
_is_optional
(tp: type)
core/config.py:43
↓ 1 callers
Method
_load
(self)
core/db.py:13
↓ 1 callers
Method
_load_prompts
(self)
core/entry.py:25
↓ 1 callers
Method
_migrate_entry_storage
(self)
core/entry.py:30
↓ 1 callers
Method
add_entry
(self, data: list[dict[str, Any]])
core/entry.py:40
↓ 1 callers
Method
from_dict
(cls, data: dict)
core/model.py:33
↓ 1 callers
Method
from_qq_data
( cls, user_id: str, *, data: dict[str, Any], )
core/model.py:37
↓ 1 callers
Method
generate_portrait
生成用户画像分析文本
core/llm.py:19
↓ 1 callers
Method
get_entry
获取条目
core/entry.py:55
↓ 1 callers
Method
get_nickname_gender
获取指定群友的昵称和性别
core/profile_service.py:17
↓ 1 callers
Method
get_provider
(self, *, umo: str | None = None)
core/config.py:177
↓ 1 callers
Method
get_query_rounds
获取查询轮数
core/config.py:144
↓ 1 callers
Method
get_user_texts
获取指定用户在群内的历史文本消息
core/message.py:127
↓ 1 callers
Method
save
(self)
core/db.py:30
↓ 1 callers
Method
to_dict
(self)
core/model.py:29
Method
__getattr__
(self, key: str)
core/config.py:62
Method
__init__
(self, context: Context, config: AstrBotConfig)
main.py:26
Method
__init__
(self, data: dict[str, Any])
core/config.py:116
Method
__init__
(self, data: dict[str, Any])
core/config.py:138
Method
__init__
(self, cfg: AstrBotConfig, context: Context)
core/config.py:165
Method
__init__
(self, config: PluginConfig)
core/db.py:8
Method
__init__
(self, config: PluginConfig)
core/llm.py:16
Method
__init__
(self, config: PluginConfig)
core/entry.py:14
Method
__init__
(self, config: PluginConfig)
core/message.py:54
Method
all
(self)
core/db.py:44
Method
count
(self)
core/message.py:31
Function
get_at_id
(event: AiocqhttpMessageEvent)
core/utils.py:6
Method
get_portrayal
画像 @群友 <查询轮数>
main.py:83
Method
get_profile
( self, event: AiocqhttpMessageEvent, user_id: str, )
core/profile_service.py:28
Method
initialize
加载插件时调用
main.py:36
Method
is_empty
(self)
core/message.py:35
Method
on_llm_request
(self, event: AstrMessageEvent, req: ProviderRequest)
main.py:69
Method
persona_id
(self)
core/model.py:26
Method
raw_data
底层配置 dict 的只读视图
core/config.py:91
Method
restore_persona
恢复人格
main.py:312
Method
switch_persona
切换人格 @群友
main.py:193
Method
terminate
(self)
main.py:45
Method
to_dict
(self)
core/config.py:119
Method
view_portrayal
查看画像 @群友
main.py:49