Interface: AiTextGen

AiTextGen

AI Text Gen Request AI Text Gen Request object
Source:

Members

dialogue_history :Array

The history of prompts and answers previously passed to the LLM. This provides additional context to the LLM in generating the response.
Type:
  • Array
Properties:
Name Type Attributes Description
[].answer string <optional>
[].created_at string <optional>
[].prompt string <optional>
Source:

items :Array

The items to be processed by the LLM, often files. The array can include **exactly one** element. **Note**: Box AI handles documents with text representations up to 1MB in size. If the file size exceeds 1MB, the first 1MB of text representation will be processed.
Type:
  • Array
Properties:
Name Type Attributes Description
[].id string <optional>
[].type string <optional>
[].content string <optional>
Source:

prompt :string

The prompt provided by the client to be answered by the LLM. The prompt's length is limited to 10000 characters. Example: Write an email to a client about the importance of public APIs.
Type:
  • string
Source: