public class BoxAIAgentAskLongText extends BoxJSONObject
Constructor and Description |
---|
BoxAIAgentAskLongText(BoxAIAgentEmbeddings embeddings,
BoxAIAgentLLMEndpointParams llmEndpointParams,
String model,
int numTokensForCompletion,
String promptTemplate,
String systemMessage)
Constructs an AI agent with default settings.
|
BoxAIAgentAskLongText(JsonObject jsonObject)
Constructs an AI agent with default settings.
|
Modifier and Type | Method and Description |
---|---|
BoxAIAgentEmbeddings |
getEmbeddings()
Gets the embeddings used by the AI agent.
|
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 |
setEmbeddings(BoxAIAgentEmbeddings embeddings)
Sets the embeddings used by the AI agent.
|
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 BoxAIAgentAskLongText(BoxAIAgentEmbeddings embeddings, BoxAIAgentLLMEndpointParams llmEndpointParams, String model, int numTokensForCompletion, String promptTemplate, String systemMessage)
embeddings
- Embeddings used by the AI agent.llmEndpointParams
- The parameters for the LLM endpoint specific to OpenAI / Google models.
Value can be "google_params" or "openai_params".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 BoxAIAgentAskLongText(JsonObject jsonObject)
jsonObject
- JSON object representing the AI agent.public BoxAIAgentEmbeddings getEmbeddings()
public void setEmbeddings(BoxAIAgentEmbeddings embeddings)
embeddings
- The embeddings used by 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()