validate

open fun validate(userMessages: List<UserMessage>, blackboard: Blackboard): ValidationResult

Validate a list of user messages from a conversation.

This method allows validation of multi-turn user inputs and can examine the context and flow of user messages in the conversation.

Default implementation uses combineMessages to extract and combine text content from all user messages, then validates the combined text. Implementations can override combineMessages for custom message combination, or override this method entirely for more sophisticated conversation-aware validation.

Return

validation result indicating success or failure

Parameters

userMessages

the list of user messages to validate

blackboard

the blackboard context


open fun validate(content: MultimodalContent, blackboard: Blackboard): ValidationResult

Validate multimodal content containing text and potentially images.

This method handles validation of content that may include both textual and visual components. The default implementation validates only the text portion, but implementations can override to provide image content analysis.

Return

validation result indicating success or failure

Parameters

content

the multimodal content to validate

blackboard

the blackboard context