• Preparing search index...
  • The search index is not available
Arize Phoenix TS
  • Arize Phoenix TS
  • @arizeai/phoenix-evals
  • template/applyTemplate
  • formatTemplate

Function formatTemplate

  • formatTemplate(
        args: { template: PromptTemplate; variables: Record<string, unknown> },
    ): RenderedPrompt

    A function that applies a set of variables to a template (e.g. a prompt) Uses the Mustache library to apply the variables to the template

    Parameters

    • args: { template: PromptTemplate; variables: Record<string, unknown> }

    Returns RenderedPrompt

    • Defined in template/applyTemplate.ts:11

Settings

Member Visibility
Arize Phoenix TS
  • Loading...

Generated using TypeDoc