Unified method for loading a prompt from LangChainHub or local filesystem.
load_prompt(
path: str | Path,
encoding: str | None = None,
*,
allow_dangerous_paths: bool = False
) -> BasePromptTemplate| Name | Type | Description |
|---|---|---|
path* | str | Path | Path to the prompt file. |
encoding | str | None | Default: NoneEncoding of the file. |
allow_dangerous_paths | bool | Default: FalseIf |