TypeRequestingTool

constructor(delegate: Tool, type: Class<T>, messageProvider: (String) -> String? = { null })

Parameters

T

The type of value to request

delegate

The tool to wrap

type

The class of the requested type

messageProvider

Function to generate the request message from input