Skip to content

Type Alias: TemplateChatWrapperOptions ​

ts
type TemplateChatWrapperOptions = {
  template: `${"" | `${string}`}${string}${string}${string}`;
  historyTemplate: {
     system: `${string}${string}`;
     user: `${string}${string}`;
     model: `${string}${string}`;
  };
  functionCallMessageTemplate?: ChatHistoryFunctionCallMessageTemplate;
  joinAdjacentMessagesOfTheSameType?: boolean;
  segments?: TemplateChatWrapperSegmentsOptions;
};

Defined in: chatWrappers/generic/TemplateChatWrapper.ts:10

Properties ​

template ​

ts
template: `${"" | `${string}`}${string}${string}${string}`;

Defined in: chatWrappers/generic/TemplateChatWrapper.ts:11


historyTemplate ​

ts
historyTemplate: {
  system: `${string}${string}`;
  user: `${string}${string}`;
  model: `${string}${string}`;
};

Defined in: chatWrappers/generic/TemplateChatWrapper.ts:12

system ​

ts
system: `${string}${string}`;

user ​

ts
user: `${string}${string}`;

model ​

ts
model: `${string}${string}`;

functionCallMessageTemplate? ​

ts
optional functionCallMessageTemplate: ChatHistoryFunctionCallMessageTemplate;

Defined in: chatWrappers/generic/TemplateChatWrapper.ts:17


joinAdjacentMessagesOfTheSameType? ​

ts
optional joinAdjacentMessagesOfTheSameType: boolean;

Defined in: chatWrappers/generic/TemplateChatWrapper.ts:24

Whether to join adjacent messages of the same type.

Defaults to true.


segments? ​

Defined in: chatWrappers/generic/TemplateChatWrapper.ts:29

Format of the segments generated by the model (like thought segments)