MCPcopy Create free account

hub / github.com/Lzh-xbccz/hermes-roleplay-engine / functions

Functions55 in github.com/Lzh-xbccz/hermes-roleplay-engine

↓ 5 callersFunction_load_card
加载角色卡(支持 JSON 和 YAML)
src/character_engine.py:77
↓ 4 callersFunction_get_saves_dir
(char_name: str)
src/character_engine.py:737
↓ 4 callersFunctionsearch_with_fallback
搜索:Tavily → DuckDuckGo → Playwright → 空
tools/distill.py:198
↓ 3 callersFunctioncollect_texts
从搜索结果收集文本,对高价值 URL 抓取全文
tools/distill.py:326
↓ 3 callersFunctionformat_texts
(texts)
tools/distill.py:398
↓ 3 callersFunctionget_active_wbs
()
src/worldbook_engine.py:91
↓ 3 callersFunctionload_character
加载角色
src/character_engine.py:614
↓ 3 callersFunctionq
(n)
tools/distill.py:440
↓ 2 callersFunction_check_keys
()
tools/tavily_client.py:26
↓ 2 callersFunction_load_state
()
tools/tavily_client.py:36
↓ 2 callersFunction_save_state
(state)
tools/tavily_client.py:43
↓ 2 callersFunctionfetch_url
抓取 URL:Tavily → smart_crawl → urllib fallback
tools/distill.py:215
↓ 2 callersFunctionsave_active_wbs
(wbs: list)
src/worldbook_engine.py:98
↓ 2 callersFunctiontavily_extract
带轮询的 Tavily 内容提取
tools/tavily_client.py:85
↓ 2 callersFunctiontavily_search
带轮询的 Tavily 搜索
tools/tavily_client.py:48
↓ 1 callersFunction_build_body_lock
构建身体一致性锁定段落,防止模型混淆角色性别和身体特征
src/character_engine.py:90
↓ 1 callersFunction_duckduckgo_search
DuckDuckGo HTML 搜索(无需 API key)
tools/distill.py:59
↓ 1 callersFunction_find_character
查找角色文件
src/character_engine.py:706
↓ 1 callersFunction_is_blacklisted
(url)
tools/distill.py:171
↓ 1 callersFunction_parse_yaml
解析 YAML 角色卡,返回扁平 dict
src/character_engine.py:19
↓ 1 callersFunction_playwright_search
(query)
tools/distill.py:185
↓ 1 callersFunction_queries_analysis
Agent C 搜索词
tools/distill.py:144
↓ 1 callersFunction_queries_quotes
Agent B 搜索词
tools/distill.py:117
↓ 1 callersFunction_queries_wiki
Agent A 搜索词
tools/distill.py:88
↓ 1 callersFunction_restore_params
恢复模型参数——只还原仍为引擎设置值的字段(用户手动改过的不覆盖)
src/character_engine.py:587
↓ 1 callersFunction_set_model_params
设置模型参数,返回旧值(含引擎设置的目标值用于恢复时比对)
src/character_engine.py:572
↓ 1 callersFunction_tavily_search
(query, max_results=5)
tools/distill.py:175
↓ 1 callersFunction_try_fandom_subpages
从搜索结果中找到 fandom URL,主动爬取 /Quotes 子页面(限时)
tools/distill.py:257
↓ 1 callersFunction_ytdlp_search_and_extract
搜索 YouTube/B站视频并提取字幕
tools/distill.py:279
↓ 1 callersFunctionbuild_soul_md
用角色卡构建 SOUL.md
src/character_engine.py:190
↓ 1 callersFunctioncrawl
(url, force_playwright=False)
tools/smart_crawl.py:60
↓ 1 callersFunctiondecode_iTXt
解码 iTXt chunk → (keyword, text)
tools/png_parser.py:55
↓ 1 callersFunctiondecode_tEXt
解码 tEXt chunk → (keyword, text)
tools/png_parser.py:45
↓ 1 callersFunctiondelete_save
删除存档
src/character_engine.py:810
↓ 1 callersFunctionextract_character_data
从 PNG 中提取角色数据,优先 V3 (ccv3)
tools/png_parser.py:80
↓ 1 callersFunctionlist_saves
列出存档
src/character_engine.py:785
↓ 1 callersFunctionload_scene
加载存档,返回完整恢复数据
src/character_engine.py:775
↓ 1 callersFunctionload_worldbook
解析WB JSON,返回条目列表
src/worldbook_engine.py:18
↓ 1 callersFunctionmain
()
tools/distill.py:495
↓ 1 callersFunctionmain
()
tools/png_parser.py:111
↓ 1 callersFunctionmain
()
tools/smart_crawl.py:86
↓ 1 callersFunctionparse_png_chunks
解析 PNG chunk 数据
tools/png_parser.py:24
↓ 1 callersFunctionpreload_worldbooks
扫描 World Book,构建紧凑索引注入 SOUL.md。 如果角色卡指定了 worldbooks 字段,只加载指定的;否则只加载通用世界书。
src/character_engine.py:469
↓ 1 callersFunctionprint_memory_commands
打印给 Hermes 执行的 memory 写入指令
src/worldbook_engine.py:78
↓ 1 callersFunctionrun_research
(char_name, work_name, lang="zh", media_type="auto")
tools/distill.py:406
↓ 1 callersFunctionsave_research
(char_name, work_name, data, media_type)
tools/distill.py:467
↓ 1 callersFunctionsave_scene
保存当前场景进度。每个角色最多3个存档,自动轮转。
src/character_engine.py:742
↓ 1 callersFunctionsearch
(query)
tools/smart_crawl.py:75
↓ 1 callersFunctionstatus
查看状态
src/character_engine.py:681
↓ 1 callersFunctiontry_playwright
(url)
tools/smart_crawl.py:45
↓ 1 callersFunctiontry_tavily
(url)
tools/smart_crawl.py:32
↓ 1 callersFunctionunload_character
卸载角色
src/character_engine.py:657
Functionagent_a
Agent A: 基础档案
tools/distill.py:351
Functionagent_b
Agent B: 台词与行为
tools/distill.py:362
Functionagent_c
Agent C: 社区解读
tools/distill.py:383