unlockedByArtifact

fun unlockedByArtifact(artifactType: Class<*>): PlaybookTool

Unlock when an artifact of the specified type is produced.

Example:

.withTool(summarizeTool).unlockedByArtifact(Document.class)