load_prompt_from_config#

langchain_core.prompts.loading.load_prompt_from_config(config: dict) BasePromptTemplate[source]#

Load prompt from Config Dict.

Parameters:

config (dict) – Dict containing the prompt configuration.

Returns:

A PromptTemplate object.

Raises:

ValueError – If the prompt type is not supported.

Return type:

BasePromptTemplate