Function composeChatPrompt

  • Returns the chat prompt (array of ChatCompletionMessageParams) allowing the model to generate the given outputs based on the given inputs.

    Type Parameters

    • O extends Specs

      Type of the outputs, extending Specs.

    • I extends Inputs

      Type of the inputs, extending Inputs.

    Parameters

    • outputs: O

      Outputs that the model should generate.

    • Optional inputs: I

      Inputs that the model should use to generate the outputs.

    • options: GenerateOptions<O, I> = {}

      Options for generating the chat prompt.

    Returns ChatCompletionMessageParam[]

    The chat prompt (array of ChatCompletionMessageParams) allowing the model to generate the given outputs based on the given inputs.

Generated using TypeDoc