Interface Template.Builder

Enclosing class:
Template

public static interface Template.Builder
Builder helper class.
  • Method Details

    • template

      Template template(@Nonnull List<ChatMessage> template)
      Set the template of this Template instance.
      Parameters:
      template - A chat message array to be formatted with values from placeholder_values. Both role and content can be templated. If messages_history is provided, the templated messages will be appended.
      Returns:
      The Template instance.
    • template

      default Template template(@Nonnull ChatMessage... template)
      Set the template of this Template instance.
      Parameters:
      template - A chat message array to be formatted with values from placeholder_values. Both role and content can be templated. If messages_history is provided, the templated messages will be appended.
      Returns:
      The Template instance.