public class BoxAIDialogueEntry extends BoxJSONObject
| Constructor and Description |
|---|
BoxAIDialogueEntry(String prompt,
String answer) |
BoxAIDialogueEntry(String prompt,
String answer,
Date createdAt) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnswer()
Get the answer previously provided by the LLM.
|
Date |
getCreatedAt()
Get The ISO date formatted timestamp of when the previous answer to the prompt was created.
|
JsonObject |
getJSONObject()
Gets a JSON object representing this class.
|
String |
getPrompt()
Get the prompt previously provided by the client and answered by the LLM.
|
void |
setAnswer(String answer)
Set the answer previously provided by the LLM.
|
void |
setCreatedAt(Date createdAt)
Set The ISO date formatted timestamp of when the previous answer to the prompt was created.
|
void |
setPrompt(String prompt)
Set the prompt previously provided by the client and answered by the LLM.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObjectpublic BoxAIDialogueEntry(String prompt, String answer, Date createdAt)
prompt - The prompt previously provided by the client and answered by the LLM.answer - The answer previously provided by the LLM.createdAt - The ISO date formatted timestamp of when the previous answer to the prompt was created.public BoxAIDialogueEntry(String prompt, String answer)
prompt - The prompt previously provided by the client and answered by the LLM.answer - The answer previously provided by the LLM.public String getAnswer()
public void setAnswer(String answer)
answer - the answer previously provided by the LLM.public String getPrompt()
public void setPrompt(String prompt)
prompt - the prompt previously provided by the client and answered by the LLM.public Date getCreatedAt()
public void setCreatedAt(Date createdAt)
createdAt - The ISO date formatted timestamp of when the previous answer to the prompt was created.public JsonObject getJSONObject()