load#

langchain_prompty.utils.load(prompt_path: str, configuration: str = 'default') Prompty[source]#

Load a prompty file and return a Prompty object.

Parameters:
  • prompt_path (str) – The path to the prompty file.

  • configuration (str) – The configuration to use. Defaults to β€œdefault”.

Returns:

The Prompty object.

Return type:

Prompty