Unified method for loading a prompt from LangChainHub or local filesystem.
If False (default), file paths referenced
inside the loaded config (such as template_path, examples,
and example_prompt_path) are validated to reject absolute paths
and directory traversal (..) sequences. Set to True only
if you trust the source of the config.