public class BoxAIAgentAskBasicText extends BoxJSONObject
Constructor and Description |
---|
BoxAIAgentAskBasicText(BoxAIAgentLLMEndpointParams llmEndpointParams,
String model,
int numTokensForCompletion,
String promptTemplate,
String systemMessage)
Constructs an AI agent with default settings.
|
BoxAIAgentAskBasicText(JsonObject jsonObject)
Constructs an AI agent with default settings.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
getJSONObject() |
BoxAIAgentLLMEndpointParams |
getLlmEndpointParams()
Gets the parameters for the LLM endpoint specific to OpenAI / Google models.
|
String |
getModel()
Gets the model used for the AI Agent for basic text.
|
int |
getNumTokensForCompletion()
Gets the number of tokens for completion.
|
String |
getPromptTemplate()
Gets the prompt template contains contextual information of the request and the user prompt.
|
String |
getSystemMessage()
Gets the system messages try to help the LLM "understand" its role and what it is supposed to do.
|
void |
setLlmEndpointParams(BoxAIAgentLLMEndpointParams llmEndpointParams)
Sets the parameters for the LLM endpoint specific to OpenAI / Google models.
|
void |
setModel(String model)
Sets the model used for the AI Agent for basic text.
|
void |
setNumTokensForCompletion(int numTokensForCompletion)
Sets the number of tokens for completion.
|
void |
setPromptTemplate(String promptTemplate)
Sets the prompt template contains contextual information of the request and the user prompt.
|
void |
setSystemMessage(String systemMessage)
Sets the system messages try to help the LLM "understand" its role and what it is supposed to do.
|
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public BoxAIAgentAskBasicText(BoxAIAgentLLMEndpointParams llmEndpointParams, String model, int numTokensForCompletion, String promptTemplate, String systemMessage)
llmEndpointParams
- The parameters for the LLM endpoint specific to OpenAI / Google models.model
- The model used for the AI Agent for basic text.numTokensForCompletion
- The number of tokens for completion.promptTemplate
- The prompt template contains contextual information of the request and the user prompt.
When passing prompt_template parameters, you must include inputs for {user_question} and {content}.
Input for {current_date} is optional, depending on the use.systemMessage
- System messages try to help the LLM "understand" its role and what it is supposed to do.public BoxAIAgentAskBasicText(JsonObject jsonObject)
jsonObject
- JSON object representing the AI agent.public BoxAIAgentLLMEndpointParams getLlmEndpointParams()
public void setLlmEndpointParams(BoxAIAgentLLMEndpointParams llmEndpointParams)
llmEndpointParams
- The parameters for the LLM endpoint specific to OpenAI / Google models.public String getModel()
public void setModel(String model)
model
- The model used for the AI Agent for basic text.public int getNumTokensForCompletion()
public void setNumTokensForCompletion(int numTokensForCompletion)
numTokensForCompletion
- The number of tokens for completion.public String getPromptTemplate()
public void setPromptTemplate(String promptTemplate)
promptTemplate
- The prompt template contains contextual information of the request and the user prompt.public String getSystemMessage()
public void setSystemMessage(String systemMessage)
systemMessage
- The system messages try to help the LLM "understand" its role and what it is supposed to do.public JsonObject getJSONObject()