Optional
afterString to display after a shot
The default message template for the assistant.
The id slug of the template.
Optional
linebreaksOptional specifications for line breaks between different message types.
This can be used to format the rendered conversation.
The name of the template.
Optional
prefixA prefix like a bos token to insert before content
Optional
shotsOptional array of turn blocks representing back-and-forths between the user and the assistant.
Useful for simulating multi-turn interactions.
Optional
stopOptional array of strings that signal the end of a conversation.
These strings can be used to detect when a conversation should be terminated.
Optional
systemOptional prompt block that represents system-level messages or instructions.
The default message template for the user.
Includes a {prompt}
placeholder which can be programmatically replaced later.
Generated using TypeDoc
Represents a template for language modeling, detailing the structure and interaction elements of a conversation.
Example