MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / to_tree_obj

Function to_tree_obj

apps/common/utils/split_model.py:33–40  ·  view source on GitHub ↗

转换为树形对象 :param content: 文本数据 :param state: 状态: title block :return: 转换后的数据

(content, state='title')

Source from the content-addressed store, hash-verified

31
32
33def to_tree_obj(content, state='title'):
34 """
35 转换为树形对象
36 :param content: 文本数据
37 :param state: 状态: title block
38 :return: 转换后的数据
39 """
40 return {'content': content, 'state': state}
41
42
43def remove_special_symbol(str_source: str):

Callers 1

parse_to_treeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected