com.sap.cloud.sdk.services.recastai.userrequest.DialogResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of recast-ai Show documentation
Show all versions of recast-ai Show documentation
Integration of SAP Conversational AI, aka Recast AI
(Beta release, still subject to change - up to discontinuation of module).
/*
* 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