| Modifier and Type | Class and Description |
|---|---|
static class |
AiManager.Builder |
| Modifier and Type | Field and Description |
|---|---|
Authentication |
auth |
NetworkSession |
networkSession |
| Modifier | Constructor and Description |
|---|---|
|
AiManager() |
protected |
AiManager(AiManager.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
AiResponseFull |
createAiAsk(AiAsk requestBody)
Sends an AI request to supported LLMs and returns an answer specifically focused on the user's
question given the provided context.
|
AiResponseFull |
createAiAsk(AiAsk requestBody,
CreateAiAskHeaders headers)
Sends an AI request to supported LLMs and returns an answer specifically focused on the user's
question given the provided context.
|
AiResponse |
createAiExtract(AiExtract requestBody)
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of
key-value pairs.
|
AiResponse |
createAiExtract(AiExtract requestBody,
CreateAiExtractHeaders headers)
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of
key-value pairs.
|
AiExtractStructuredResponse |
createAiExtractStructured(AiExtractStructured requestBody)
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as
a set of key-value pairs.
|
AiExtractStructuredResponse |
createAiExtractStructured(AiExtractStructured requestBody,
CreateAiExtractStructuredHeaders headers)
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as
a set of key-value pairs.
|
AiResponse |
createAiTextGen(AiTextGen requestBody)
Sends an AI request to supported Large Language Models (LLMs) and returns generated text based
on the provided prompt.
|
AiResponse |
createAiTextGen(AiTextGen requestBody,
CreateAiTextGenHeaders headers)
Sends an AI request to supported Large Language Models (LLMs) and returns generated text based
on the provided prompt.
|
AiAgent |
getAiAgentDefaultConfig(GetAiAgentDefaultConfigQueryParams queryParams)
Get the AI agent default config.
|
AiAgent |
getAiAgentDefaultConfig(GetAiAgentDefaultConfigQueryParams queryParams,
GetAiAgentDefaultConfigHeaders headers)
Get the AI agent default config.
|
Authentication |
getAuth() |
NetworkSession |
getNetworkSession() |
public Authentication auth
public NetworkSession networkSession
public AiManager()
protected AiManager(AiManager.Builder builder)
public AiResponseFull createAiAsk(AiAsk requestBody)
requestBody - Request body of createAiAsk methodpublic AiResponseFull createAiAsk(AiAsk requestBody, CreateAiAskHeaders headers)
requestBody - Request body of createAiAsk methodheaders - Headers of createAiAsk methodpublic AiResponse createAiTextGen(AiTextGen requestBody)
requestBody - Request body of createAiTextGen methodpublic AiResponse createAiTextGen(AiTextGen requestBody, CreateAiTextGenHeaders headers)
requestBody - Request body of createAiTextGen methodheaders - Headers of createAiTextGen methodpublic AiAgent getAiAgentDefaultConfig(GetAiAgentDefaultConfigQueryParams queryParams)
queryParams - Query parameters of getAiAgentDefaultConfig methodpublic AiAgent getAiAgentDefaultConfig(GetAiAgentDefaultConfigQueryParams queryParams, GetAiAgentDefaultConfigHeaders headers)
queryParams - Query parameters of getAiAgentDefaultConfig methodheaders - Headers of getAiAgentDefaultConfig methodpublic AiResponse createAiExtract(AiExtract requestBody)
requestBody - Request body of createAiExtract methodpublic AiResponse createAiExtract(AiExtract requestBody, CreateAiExtractHeaders headers)
requestBody - Request body of createAiExtract methodheaders - Headers of createAiExtract methodpublic AiExtractStructuredResponse createAiExtractStructured(AiExtractStructured requestBody)
To define the extraction structure, provide either a metadata template or a list of fields. To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates) or use the [metadata template API](https://developer.box.com/guides/metadata/templates/create).
This endpoint also supports [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent).
For information about supported file formats and languages, see the [Extract metadata from file (structured)](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured) API guide.
requestBody - Request body of createAiExtractStructured methodpublic AiExtractStructuredResponse createAiExtractStructured(AiExtractStructured requestBody, CreateAiExtractStructuredHeaders headers)
To define the extraction structure, provide either a metadata template or a list of fields. To learn more about creating templates, see [Creating metadata templates in the Admin Console](https://support.box.com/hc/en-us/articles/360044194033-Customizing-Metadata-Templates) or use the [metadata template API](https://developer.box.com/guides/metadata/templates/create).
This endpoint also supports [Enhanced Extract Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent).
For information about supported file formats and languages, see the [Extract metadata from file (structured)](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured) API guide.
requestBody - Request body of createAiExtractStructured methodheaders - Headers of createAiExtractStructured methodpublic Authentication getAuth()
public NetworkSession getNetworkSession()