history property

  1. @TagNumber.new(27)
PbList<ChatMessage> get history

Prior conversation turns (excludes the current prompt, which stays the live user turn, and options.system_prompt, which stays separate). Alternating user/assistant ChatMessages in chronological order. An engine that owns its chat template renders {system_prompt, history, prompt} from its model's markers; engines that don't simply ignore this field.

Implementation

@$pb.TagNumber(27)
$pb.PbList<$1.ChatMessage> get history => $_getList(7);