withFinishTool
fun <Output : Any, OutputTransformed : Any> withFinishTool(finishTool: Tool<Output, OutputTransformed>): SubgraphWithFinishToolBuilder<Input, Output, OutputTransformed>(source)
Configures the subgraph with a specified finish tool to process the output. This allows the subgraph to conclude by transforming the output using the provided tool.
Return
A builder instance of SubgraphWithFinishToolBuilder configured to handle the input type Input and the transformed output type OutputTransformed.
Parameters
finishTool
The tool responsible for transforming the output of type Output into a new type OutputTransformed before finalizing the subgraph processing.