ReplanningTool

constructor(delegate: Tool, reason: String, blackboardUpdater: ReplanningToolBlackboardUpdater = ReplanningToolBlackboardUpdater { bb, content -> bb.addObject(content) })

Parameters

delegate

The tool to wrap

reason

Human-readable explanation of why replan is needed

blackboardUpdater

Callback to update the blackboard before replanning. Receives the result content and can add objects to the blackboard. Defaults to adding the result content as a string.