public abstract class BoxAIAgent extends BoxJSONObject
Modifier and Type | Class and Description |
---|---|
static class |
BoxAIAgent.Mode
The type of the AI agent for asking questions.
|
Constructor and Description |
---|
BoxAIAgent(JsonObject jsonObject)
Constructs an AI agent with default settings.
|
BoxAIAgent(String type)
Constructs an AI agent with default settings.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
getJSONObject() |
String |
getType()
Gets the type of the AI agent.
|
static BoxAIAgent |
parse(JsonObject jsonObject)
Constructs an AI agent with default settings.
|
void |
setType(String type)
Sets the type of the AI agent.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxAIAgent(String type)
type
- The type of the AI agent.
Value can be "ai_agent_ask", "ai_agent_text_gen", "ai_agent_extract", "ai_agent_extract_structured".public BoxAIAgent(JsonObject jsonObject)
jsonObject
- JSON object representing the AI agent.public static BoxAIAgent parse(JsonObject jsonObject)
jsonObject
- JSON object representing the AI agent.public void setType(String type)
type
- The type of the AI agent.public JsonObject getJSONObject()