Load prompt template from a template f-string
fromTemplate<
RunInput extends InputValues = Symbol,
T extends string = string
>(
template: T,
options: Omit<PromptTemplateInput<RunInput, string, "f-string">, "template" | "inputVariables">
): ChatPromptTemplate<ExtractedFStringParams<T, RunInput>>| Name | Type | Description |
|---|---|---|
template* | T | |
options | Omit<PromptTemplateInput<RunInput, string, "f-string">, "template" | "inputVariables"> |