All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.services.recastai.userrequest.DialogResponse Maven / Gradle / Ivy

Go to download

Integration of SAP Conversational AI, aka Recast AI (Beta release, still subject to change - up to discontinuation of module).

There is a newer version: 2.28.0
Show newest version
/*
 * Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
 */

package com.sap.cloud.sdk.services.recastai.userrequest;

import javax.annotation.Nullable;

import com.google.common.annotations.Beta;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import lombok.NoArgsConstructor;

/**
 * This class represents the outermost shell of the parsed JSON response from Recast upon sending a message to a dialog.
 */
@Beta
@NoArgsConstructor
public class DialogResponse
{
    @SerializedName( "results" )
    @Expose
    private DialogResults results;

    @SerializedName( "message" )
    @Expose
    private String message;

    /**
     * Recast returns all analysis and responses on the text in a results object which can be obtained here
     * 
     * @return a results object. In case of failure this can contain null
     */
    @Nullable
    public DialogResults getResults()
    {
        return results;
    }

    /**
     * Contains a meta data message referring on the success of the processing of the previously sent data.
     * 
     * @return shuld return a string confirming the rendering
     */
    @Nullable
    public String getMessage()
    {
        return message;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy