Box AI Platform API is currently in beta which means the
available capabilities may change.
Box AI Platform API is available to all Enterprise Plus customers.
The GET /2.0/ai_agent_default endpoint allows you to fetch the default configuration for AI services.
Once you get the configuration details, you can override them using the ai_agent parameter available in the POST /2.0/ai/ask and POST /2.0/ai/text_gen requests.
Override examples include:
Replacing the default LLM with a custom one based on your organization's needs.
Tweaking the base prompt to allow a more customized user experience.
Changing a parameter, such as temperature, to make the results more or less creative.
await client.Ai.GetAiAgentDefaultConfigAsync(queryParams: new GetAiAgentDefaultConfigQueryParams(mode: GetAiAgentDefaultConfigQueryParamsModeField.TextGen) { Language = "en-US" });
client.ai.getAiAgentDefaultConfig({
mode: 'ask',
language: 'en',
model:'openai__gpt_3_5_turbo'
}).then(response => {
/* response -> {
"type": "ai_agent_ask",
"basic_text": {
"llm_endpoint_params": {
"type": "openai_params",
"frequency_penalty": 1.5,
"presence_penalty": 1.5,
"stop": "<|im_end|>",
"temperature": 0,
"top_p": 1
},
"model": "openai__gpt_3_5_turbo",
"num_tokens_for_completion": 8400,
"prompt_template": "It is `{current_date}`, and I have $8000 and want to spend a week in the Azores. What should I see?",
"system_message": "You are a helpful travel assistant specialized in budget travel"
},
...
} */
});