Demonstration Renderer
object DemonstrationRenderer
Renders demonstrations into prompt-ready content based on the chosen format and insertion mode.
Functions
Link copied to clipboard
Strips a common prefix of inherited messages from a full message list.
Link copied to clipboard
fun renderAsMessages(demonstrations: List<Demonstration>, format: DemonstrationFormat): List<Message>
Renders a list of demonstrations as individual messages for conversation history insertion.
Link copied to clipboard
Renders a list of demonstrations as a single concatenated string.