public class BoxAIAgentEmbeddings extends BoxJSONObject
Constructor and Description |
---|
BoxAIAgentEmbeddings(JsonObject jsonObject)
Constructs an AI agent with default settings.
|
BoxAIAgentEmbeddings(String model,
BoxAIAgentEmbeddingsStrategy strategy)
Constructs an AI agent with default settings.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
getJSONObject() |
String |
getModel()
Gets the model used for the AI Agent for calculating embeddings.
|
BoxAIAgentEmbeddingsStrategy |
getStrategy()
Gets the strategy used for the AI Agent for calculating embeddings.
|
void |
setModel(String model)
Sets the model used for the AI Agent for calculating embeddings.
|
void |
setStrategy(BoxAIAgentEmbeddingsStrategy strategy)
Sets the strategy used for the AI Agent for calculating embeddings.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxAIAgentEmbeddings(String model, BoxAIAgentEmbeddingsStrategy strategy)
model
- The model used for the AI Agent for calculating embeddings.strategy
- The strategy used for the AI Agent for calculating embeddings.public BoxAIAgentEmbeddings(JsonObject jsonObject)
jsonObject
- JSON object representing the AI agent.public String getModel()
public void setModel(String model)
model
- The model used for the AI Agent for calculating embeddings.public BoxAIAgentEmbeddingsStrategy getStrategy()
public void setStrategy(BoxAIAgentEmbeddingsStrategy strategy)
strategy
- The strategy used for the AI Agent for calculating embeddings.public JsonObject getJSONObject()