public class BoxAIResponse extends BoxJSONObject
Constructor and Description |
---|
BoxAIResponse(String json)
Constructs a BoxAIResponse from a JSON string.
|
BoxAIResponse(String answer,
String completionReason,
Date createdAt)
Constructs a BoxAIResponse object.
|
Modifier and Type | Method and Description |
---|---|
String |
getAnswer()
Gets the answer of the AI.
|
String |
getCompletionReason()
Gets reason the response finishes.
|
Date |
getCreatedAt()
Gets the ISO date formatted timestamp of when the answer to the prompt was created.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxAIResponse(String answer, String completionReason, Date createdAt)
public BoxAIResponse(String json)
json
- the JSON encoded upload email.public String getCompletionReason()
public Date getCreatedAt()