ToolRegistration

Intermediate registration object returned by PlaybookTool.withTool.

Supports both Kotlin curried syntax and Java fluent API:

// Kotlin curried syntax
.withTool(analyzeTool)(searchTool)

// Kotlin/Java fluent syntax
.withTool(analyzeTool).unlockedBy(searchTool)

Functions

Link copied to clipboard
operator fun invoke(vararg prerequisites: Tool): PlaybookTool

Kotlin currying operator - unlock after specified prerequisite tool(s). When multiple tools are specified, ALL must be called (AND logic).

operator fun invoke(artifactType: KClass<*>): PlaybookTool

Kotlin currying operator - unlock when artifact type is produced.

Link copied to clipboard
fun unlockedBy(prerequisite: Tool): PlaybookTool

Unlock after a single prerequisite tool has been called.

Link copied to clipboard
fun unlockedByAll(vararg prerequisites: Tool): PlaybookTool

Unlock after ALL specified prerequisite tools have been called (AND logic).

Link copied to clipboard
fun unlockedByAny(vararg prerequisites: Tool): PlaybookTool

Unlock after ANY of the specified prerequisite tools has been called (OR logic).

Link copied to clipboard
fun unlockedByArtifact(artifactType: Class<*>): PlaybookTool

Unlock when an artifact of the specified type is produced.

Link copied to clipboard

Unlock when any artifact matches the given predicate.

Link copied to clipboard

Unlock when an object of the specified type exists on the blackboard.

Link copied to clipboard

Unlock when the blackboard matches a predicate.

Link copied to clipboard

Unlock when a custom condition is met.

Unlock when a predicate returns true.