combineMessages

open fun combineMessages(userMessages: List<UserMessage>): String

Combines multiple user messages into a single string for validation.

Override this method to customize how messages are combined before validation. For example, implementations might want to:

  • Add separators or context markers between messages

  • Filter out certain message types

  • Apply message-specific preprocessing

Return

the combined text representation of the messages

Parameters

userMessages

the list of user messages to combine