AssistantMessageGuardRail

Validates assistant responses after LLM execution.

AssistantMessageGuardRails provide safety and quality checks on content that AI systems produce, ensuring that generated responses meet organizational standards for appropriateness, accuracy, compliance, and quality.

This interface handles validation of both standard responses and thinking-enhanced responses that include internal reasoning content.

Properties

Link copied to clipboard
abstract val description: String

Description of what this validator checks. Used for documentation and debugging purposes.

Link copied to clipboard
abstract val name: String

Human-readable name for this validator. Used for logging, error reporting, and configuration.

Functions

Link copied to clipboard
abstract fun validate(input: String, blackboard: Blackboard): ValidationResult

Validate the given input within the provided blackboard context.

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

Validate a standard assistant message response.

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

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