WhenPredicate

data class WhenPredicate(val predicate: (PlaybookContext) -> Boolean) : UnlockCondition

Tool unlocks when a custom predicate returns true.

Constructors

Link copied to clipboard
constructor(predicate: (PlaybookContext) -> Boolean)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun isSatisfied(context: PlaybookContext): Boolean

Evaluate whether this condition is met given the current context.