validate

abstract fun validate(response: ThinkingResponse<*>, blackboard: Blackboard): ValidationResult

Validate a thinking-enhanced response containing both result and reasoning.

This method provides access to the complete thinking response, allowing validators to examine both the final result and the internal thinking blocks. Implementations can validate the relationship between thinking and result, check for inappropriate reasoning, or ensure thinking quality standards.

Return

validation result indicating success or failure

Parameters

response

the thinking response containing result and thinking blocks

blackboard

the blackboard context


open fun validate(message: AssistantMessage, blackboard: Blackboard): ValidationResult

Validate a standard assistant message response.

This method handles validation of typical chat-style responses from the assistant, checking content appropriateness and compliance.

Default implementation validates the message content, but implementations can override to examine message metadata or perform more sophisticated conversation-aware validation.

Return

validation result indicating success or failure

Parameters

message

the assistant message to validate

blackboard

the blackboard context