MCPcopy Create free account

hub / github.com/Zhalslar/astrbot_plugin_portrayal / functions

Functions54 in github.com/Zhalslar/astrbot_plugin_portrayal

↓ 29 callersMethodget
(self, user_id: str)
core/db.py:37
↓ 3 callersMethod__init__
(self, data: MutableMapping[str, Any])
core/config.py:48
↓ 3 callersMethod_schema
(cls)
core/config.py:32
↓ 3 callersMethodis_protected_user
检查用户是否在保护名单中
core/config.py:152
↓ 3 callersMethodto_text
(self)
core/model.py:55
↓ 2 callersMethod__setattr__
(self, key: str, value: Any)
core/config.py:85
↓ 2 callersMethod_fields
(cls)
core/config.py:36
↓ 2 callersMethod_get_user_cache
(self, group_id: str, user_id: str)
core/message.py:70
↓ 2 callersMethod_user_key
(self, group_id: str, user_id: str)
core/message.py:67
↓ 2 callersMethodclear_cache
(self)
core/message.py:83
↓ 2 callersMethodsave_config
保存配置到磁盘(仅允许在根节点调用)
core/config.py:97
↓ 2 callersMethodset
(self, profile: UserProfile)
core/db.py:40
↓ 1 callersMethod_build_portrait_prompt
( self, texts: list[str], profile: UserProfile, )
core/llm.py:44
↓ 1 callersMethod_call_llm
( self, *, system_prompt: str, prompt: str, profile: UserProfile,
core/llm.py:62
↓ 1 callersMethod_collect_messages
将一页群消息拆分并缓存到各个用户
core/message.py:91
↓ 1 callersMethod_is_optional
(tp: type)
core/config.py:43
↓ 1 callersMethod_load
(self)
core/db.py:13
↓ 1 callersMethod_load_prompts
(self)
core/entry.py:25
↓ 1 callersMethod_migrate_entry_storage
(self)
core/entry.py:30
↓ 1 callersMethodadd_entry
(self, data: list[dict[str, Any]])
core/entry.py:40
↓ 1 callersMethodfrom_dict
(cls, data: dict)
core/model.py:33
↓ 1 callersMethodfrom_qq_data
( cls, user_id: str, *, data: dict[str, Any], )
core/model.py:37
↓ 1 callersMethodgenerate_portrait
生成用户画像分析文本
core/llm.py:19
↓ 1 callersMethodget_entry
获取条目
core/entry.py:55
↓ 1 callersMethodget_nickname_gender
获取指定群友的昵称和性别
core/profile_service.py:17
↓ 1 callersMethodget_provider
(self, *, umo: str | None = None)
core/config.py:177
↓ 1 callersMethodget_query_rounds
获取查询轮数
core/config.py:144
↓ 1 callersMethodget_user_texts
获取指定用户在群内的历史文本消息
core/message.py:127
↓ 1 callersMethodsave
(self)
core/db.py:30
↓ 1 callersMethodto_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
Methodall
(self)
core/db.py:44
Methodcount
(self)
core/message.py:31
Functionget_at_id
(event: AiocqhttpMessageEvent)
core/utils.py:6
Methodget_portrayal
画像 @群友 <查询轮数>
main.py:83
Methodget_profile
( self, event: AiocqhttpMessageEvent, user_id: str, )
core/profile_service.py:28
Methodinitialize
加载插件时调用
main.py:36
Methodis_empty
(self)
core/message.py:35
Methodon_llm_request
(self, event: AstrMessageEvent, req: ProviderRequest)
main.py:69
Methodpersona_id
(self)
core/model.py:26
Methodraw_data
底层配置 dict 的只读视图
core/config.py:91
Methodrestore_persona
恢复人格
main.py:312
Methodswitch_persona
切换人格 @群友
main.py:193
Methodterminate
(self)
main.py:45
Methodto_dict
(self)
core/config.py:119
Methodview_portrayal
查看画像 @群友
main.py:49