public class AiTextGen extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
AiTextGen.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected AiTextGenAgent |
aiAgent |
protected List<AiDialogueHistory> |
dialogueHistory
The history of prompts and answers previously passed to the LLM.
|
protected List<AiTextGenItemsField> |
items
The items to be processed by the LLM, often files.
|
protected String |
prompt
The prompt provided by the client to be answered by the LLM.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
AiTextGen(AiTextGen.Builder builder) |
|
AiTextGen(String prompt,
List<AiTextGenItemsField> items) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AiTextGenAgent |
getAiAgent() |
List<AiDialogueHistory> |
getDialogueHistory() |
List<AiTextGenItemsField> |
getItems() |
String |
getPrompt() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final String prompt
protected final List<AiTextGenItemsField> items
**Note**: Box AI handles documents with text representations up to 1MB in size. If the file size exceeds 1MB, the first 1MB of text representation will be processed.
protected List<AiDialogueHistory> dialogueHistory
protected AiTextGenAgent aiAgent
public AiTextGen(String prompt, List<AiTextGenItemsField> items)
protected AiTextGen(AiTextGen.Builder builder)
public List<AiTextGenItemsField> getItems()
public List<AiDialogueHistory> getDialogueHistory()
public AiTextGenAgent getAiAgent()