langchain_prompty.utils.runΒΆ

langchain_prompty.utils.run(prompt: Prompty, content: Union[Dict, List, str], configuration: Dict[str, Any] = {}, parameters: Dict[str, Any] = {}, raw: bool = False) Any[source]ΒΆ

Run the prompty.

Parameters
  • prompt (Prompty) – The Prompty object.

  • content (Union[Dict, List, str]) – The content to run the prompty on.

  • configuration (Dict[str, Any]) – The configuration to use. Defaults to {}.

  • parameters (Dict[str, Any]) – The parameters to use. Defaults to {}.

  • raw (bool) – Whether to return the raw output. Defaults to False.

Returns

The result of running the prompty.

Return type

Any