replanAndAdd

fun <T> replanAndAdd(tool: Tool, valueComputer: (t: T) -> Any?): DelegatingTool

Replan and add the object returned by the predicate to the blackboard.

Parameters

tool

The tool to wrap

valueComputer

Function that takes the artifact of type T and returns an object to add to the blackboard, or null to not replan