public class BoxAIAgentLLMEndpointParamsGoogle extends BoxAIAgentLLMEndpointParams
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
The type of the LLM endpoint parameters.
|
Constructor and Description |
---|
BoxAIAgentLLMEndpointParamsGoogle(Double temperature,
Integer topK,
Double topP)
Constructs an AI agent with default settings.
|
BoxAIAgentLLMEndpointParamsGoogle(JsonObject jsonObject)
Constructs an AI agent with default settings.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
getJSONObject() |
Double |
getTemperature()
Gets the temperature used for sampling during response generation, which occurs when top-P and top-K are applied.
|
Integer |
getTopK()
Gets the top-K value.
|
Double |
getTopP()
Gets the top-P value.
|
void |
setTemperature(Double temperature)
Sets the temperature used for sampling during response generation, which occurs when top-P and top-K are applied.
|
void |
setTopK(Integer topK)
Sets the top-K value.
|
void |
setTopP(Double topP)
Sets the top-P value.
|
getType, parse, setType
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public static final String TYPE
public BoxAIAgentLLMEndpointParamsGoogle(Double temperature, Integer topK, Double topP)
temperature
- The temperature is used for sampling during response generation, which occurs when top-P and top-K are applied.
Temperature controls the degree of randomness in token selection.topK
- Top-K changes how the model selects tokens for output.
A top-K of 1 means the next selected token is the most probable among all tokens in the model's vocabulary
(also called greedy decoding), while a top-K of 3 means that the next token is selected from among the three
most probable tokens by using temperature.topP
- Top-P changes how the model selects tokens for output.
Tokens are selected from the most (see top-K) to least probable until the sum of their probabilities equals the
top-P value.public BoxAIAgentLLMEndpointParamsGoogle(JsonObject jsonObject)
jsonObject
- JSON object representing the AI agent.public Double getTemperature()
public void setTemperature(Double temperature)
temperature
- The temperature used for sampling during response generation, which occurs when top-P and top-K are applied.public JsonObject getJSONObject()
getJSONObject
in class BoxAIAgentLLMEndpointParams