conditional Replan
fun <T> conditionalReplan(tool: Tool, decider: (t: T, replanContext: ReplanContext) -> ReplanDecision?): DelegatingTool
When the decider returns a ReplanDecision, replan after execution, adding the artifact to the blackboard along with any additional updates from the decision. The decider receives the artifact cast to type T and the replan context. If the artifact is null or cannot be cast to T, the decider is not called.