MCPcopy Create free account
hub / github.com/camel-ai/owl / __init__

Method __init__

owl/utils/document_toolkit.py:47–58  ·  view source on GitHub ↗
(
        self, cache_dir: Optional[str] = None, model: Optional[BaseModelBackend] = None
    )

Source from the content-addressed store, hash-verified

45 """
46
47 def __init__(
48 self, cache_dir: Optional[str] = None, model: Optional[BaseModelBackend] = None
49 ):
50 self.image_tool = ImageAnalysisToolkit(model=model)
51 # self.audio_tool = AudioAnalysisToolkit()
52 self.excel_tool = ExcelToolkit()
53
54 self.cache_dir = "tmp/"
55 if cache_dir:
56 self.cache_dir = cache_dir
57
58 self.uio = UnstructuredIO()
59
60 @retry_on_error()
61 def extract_document_content(self, document_path: str) -> Tuple[bool, str]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected