Define how to transform the response format from a tool call.
The response format to transform
The options to use for the transformation
Whether to handle errors from the tool call
The transformed response format
Optional
Define how to transform the response format from a tool call.
Param: responseFormat
The response format to transform
Param: options
The options to use for the transformation
Param: options.handleError
Whether to handle errors from the tool call
Returns
The transformed response format