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