MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / get_astrbot_knowledge_base_path

Function get_astrbot_knowledge_base_path

astrbot/core/utils/astrbot_path.py:93–95  ·  view source on GitHub ↗

Return the AstrBot knowledge base root path.

()

Source from the content-addressed store, hash-verified

91
92
93def get_astrbot_knowledge_base_path() -> str:
94 """Return the AstrBot knowledge base root path."""
95 return os.path.realpath(os.path.join(get_astrbot_data_path(), "knowledge_base"))
96
97
98def get_astrbot_backups_path() -> str:

Callers 4

check_envFunction · 0.90
kb_mgr.pyFile · 0.90
__init__Method · 0.90
importer.pyFile · 0.90

Calls 1

get_astrbot_data_pathFunction · 0.85

Tested by

no test coverage detected