Modifier and Type | Class and Description |
---|---|
static class |
BoxAIItem.Type |
Constructor and Description |
---|
BoxAIItem(String id,
BoxAIItem.Type type)
Created a BoxAIItem - the item to be processed by the LLM.
|
BoxAIItem(String id,
BoxAIItem.Type type,
String content)
Created a BoxAIItem - the item to be processed by the LLM.
|
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Gets the content of the item.
|
String |
getId()
Gets the id of the item.
|
JsonObject |
getJSONObject()
Gets a JSON object representing this class.
|
BoxAIItem.Type |
getType()
Gets the type of the item.
|
void |
setContent(String content)
Sets the content of the item.
|
void |
setId(String id)
Sets the id of the item.
|
void |
setType(BoxAIItem.Type type)
Sets the type of the item.
|
public BoxAIItem(String id, BoxAIItem.Type type, String content)
id
- The id of the itemtype
- The type of the item. Currently, only "file" is supported.content
- The content of the item, often the text representation.public BoxAIItem(String id, BoxAIItem.Type type)
id
- The id of the itemtype
- The type of the item. Currently, only "file" is supported.public BoxAIItem.Type getType()
public void setType(BoxAIItem.Type type)
type
- the type of the item.public String getContent()
public void setContent(String content)
content
- the content of the item.public JsonObject getJSONObject()