response

public abstract FunctionResponse.Builder response(Map<String, Object> response)

Setter for response.

response: Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.