document_utils
autogen.agents.experimental.document_agent.document_utils.preprocess_path
preprocess_path
Preprocess the path for file operations.
Name | Description |
---|---|
str_or_path | The path to be processed. Type: pathlib.Path | str |
mk_path | Whether to create the path if it doesn’t exist. Default is True. Type: bool Default: False |
is_file | Whether the path is a file. Default is False. Type: bool Default: False |
is_dir | Whether the path is a directory. Default is True. Type: bool Default: True |
Type | Description |
---|---|
pathlib.Path | Path: The preprocessed path. |