public class BoxAIAgentEmbeddingsStrategy extends BoxJSONObject
Constructor and Description |
---|
BoxAIAgentEmbeddingsStrategy(JsonObject jsonObject)
Constructs an AI agent with default settings.
|
BoxAIAgentEmbeddingsStrategy(String id,
int numTokensPerChunk)
Constructs an AI agent with default settings.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the ID of the strategy used for the AI Agent for calculating embeddings.
|
JsonObject |
getJSONObject() |
int |
getNumTokensPerChunk()
Gets the number of tokens per chunk used for the AI Agent for calculating embeddings.
|
void |
setId(String id)
Sets the ID of the strategy used for the AI Agent for calculating embeddings.
|
void |
setNumTokensPerChunk(int numTokensPerChunk)
Sets the number of tokens per chunk used for the AI Agent for calculating embeddings.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxAIAgentEmbeddingsStrategy(String id, int numTokensPerChunk)
id
- The ID of the strategy used for the AI Agent for calculating embeddings.numTokensPerChunk
- The number of tokens per chunk used for the AI Agent for calculating embeddings.public BoxAIAgentEmbeddingsStrategy(JsonObject jsonObject)
jsonObject
- JSON object representing the AI agent.public String getId()
public void setId(String id)
id
- The ID of the strategy used for the AI Agent for calculating embeddings.public int getNumTokensPerChunk()
public void setNumTokensPerChunk(int numTokensPerChunk)
numTokensPerChunk
- The number of tokens per chunk used for the AI Agent for calculating embeddings.public JsonObject getJSONObject()