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