diff --git a/agentuniverse/agent/action/knowledge/reader/file/txt_reader.py b/agentuniverse/agent/action/knowledge/reader/file/txt_reader.py index bd285899..6373902a 100644 --- a/agentuniverse/agent/action/knowledge/reader/file/txt_reader.py +++ b/agentuniverse/agent/action/knowledge/reader/file/txt_reader.py @@ -8,7 +8,7 @@ class LineTxtReader(Reader): - def load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]: + def _load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]: dlist = [] with open(fpath, 'r', encoding='utf-8') as file: @@ -26,7 +26,7 @@ def load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Docume class TxtReader(Reader): """Txt reader.""" - def load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]: + def _load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]: with open(fpath, 'r', encoding='utf-8') as file: