Artifact Sink Factory
interface ArtifactSinkFactory
Factory interface for creating artifact-sinking tool decorators. Extended by Tool.Companion to provide Tool.sinkArtifacts, Tool.publishToBlackboard, etc.
Inheritors
Functions
Link copied to clipboard
Wrap a tool to publish all artifacts to the blackboard.
Wrap a tool to publish artifacts of the specified type to the blackboard.
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.
Link copied to clipboard
Wrap a tool to sink artifacts of the specified type to the given sink. Handles both single artifacts and Iterables.
open fun <T : Any> sinkArtifacts(tool: Tool, clazz: Class<T>, sink: ArtifactSink, filter: (T) -> Boolean, transform: (T) -> Any): Tool
Wrap a tool to sink artifacts of the specified type to the given sink, with optional filtering and transformation.