unlocked When
Unlock when a custom condition is met.
Example:
.withTool(actionTool).unlockedWhen(ctx -> ctx.getIterationCount() 2)Content copied to clipboard
Unlock when a predicate returns true.
Example:
.withTool(actionTool).unlockedWhen { it.calledToolNames.size >= 2 }Content copied to clipboard