publishToBlackboard

open fun publishToBlackboard(tool: Tool): Tool

Wrap a tool to publish all artifacts to the blackboard.

Parameters

tool

The tool to wrap


open fun <T : Any> publishToBlackboard(tool: Tool, clazz: Class<T>): Tool

Wrap a tool to publish artifacts of the specified type to the blackboard.

Parameters

tool

The tool to wrap

clazz

The class of artifacts to publish


open fun <T : Any> publishToBlackboard(tool: Tool, clazz: Class<T>, filter: (T) -> Boolean, transform: (T) -> Any): Tool

Wrap a tool to publish artifacts of the specified type to the blackboard, with optional filtering and transformation.

Parameters

tool

The tool to wrap

clazz

The class of artifacts to publish

filter

Predicate to filter which artifacts to publish

transform

Function to transform artifacts before publishing