Interface Template.Builder
- Enclosing class:
Template
public static interface Template.Builder
Builder helper class.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Templatetemplate(ChatMessage... template) Set the template of thisTemplateinstance.template(List<ChatMessage> template) Set the template of thisTemplateinstance.
-
Method Details
-
template
Set the template of thisTemplateinstance.- 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
Set the template of thisTemplateinstance.- 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.
-