Reject

class Reject(val feedback: String? = null) : ConditionResult(source)

Represents a condition result indicating rejection, optionally with feedback.

This implementation of the ConditionResult interface indicates that a retry condition has failed. It can contain optional feedback parameter which will be passed to the llm for the next retries.

Constructors

Link copied to clipboard
constructor(feedback: String? = null)

Properties

Link copied to clipboard
val feedback: String? = null

An optional descriptive message or information explaining the reason for the rejection.

Link copied to clipboard
open val isSuccess: Boolean

Indicates whether the current instance of ConditionResult represents a successful state. Returns true if the instance is of type Approve, signifying success. Otherwise, returns false.