run#

langchain_prompty.utils.run(
prompt: Prompty,
content: 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 (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