You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: box_sdk_gen/managers/ai.py
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -259,6 +259,12 @@ def create_ai_ask(
259
259
) ->Optional[AiResponseFull]:
260
260
"""
261
261
Sends an AI request to supported LLMs and returns an answer specifically focused on the user's question given the provided context.
262
+
263
+
You can ask a question about a single file, several files, or the entire contents of a Box Hub. To search across and ask questions about everything in a Box Hub, send a single item with `type` set to `hubs` and the Hub's ID as the `id`. Box AI answers the question using the indexed content of all files in that Hub.
264
+
265
+
266
+
Asking questions about a Box Hub requires Box AI for Hubs to be enabled in the Admin Console before the Hub is created, so that its content is indexed.
267
+
262
268
:param mode: Box AI handles text documents with text representations up to 2MB in size, or a maximum of 25 files,
263
269
whichever comes first. If the text file size exceeds 2MB, the first 2MB of text representation will be processed.
264
270
Box AI handles image documents with a resolution of 1024 x 1024 pixels, with a maximum of 5 images or 5 pages
@@ -271,6 +277,9 @@ def create_ai_ask(
271
277
The prompt's length is limited to 10000 characters.
272
278
:type prompt: str
273
279
:param items: The items to be processed by the LLM, often files.
280
+
To search across and ask questions about the contents of a Box Hub,
281
+
pass a single item with `type` set to `hubs`. See the item `type`
282
+
property for details.
274
283
:type items: List[AiItemAsk]
275
284
:param dialogue_history: The history of prompts and answers previously passed to the LLM. This provides additional context to the LLM in generating the response., defaults to None
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned the `embed_url_external_id`., defaults to None
Copy file name to clipboardExpand all lines: box_sdk_gen/schemas/ai_ask.py
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,9 @@ def __init__(
49
49
The prompt's length is limited to 10000 characters.
50
50
:type prompt: str
51
51
:param items: The items to be processed by the LLM, often files.
52
+
To search across and ask questions about the contents of a Box Hub,
53
+
pass a single item with `type` set to `hubs`. See the item `type`
54
+
property for details.
52
55
:type items: List[AiItemAsk]
53
56
:param dialogue_history: The history of prompts and answers previously passed to the LLM. This provides additional context to the LLM in generating the response., defaults to None
Copy file name to clipboardExpand all lines: box_sdk_gen/schemas/sign_request.py
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ def __init__(
101
101
external_id: Optional[str] =None,
102
102
template_id: Optional[str] =None,
103
103
external_system_name: Optional[str] =None,
104
+
request_flow: Optional[str] =None,
104
105
**kwargs
105
106
):
106
107
"""
@@ -170,6 +171,9 @@ def __init__(
170
171
:type template_id: Optional[str], optional
171
172
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned the `embed_url_external_id`., defaults to None
Copy file name to clipboardExpand all lines: box_sdk_gen/schemas/sign_request_base.py
+31-26Lines changed: 31 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -26,35 +26,39 @@ def __init__(
26
26
external_id: Optional[str] =None,
27
27
template_id: Optional[str] =None,
28
28
external_system_name: Optional[str] =None,
29
+
request_flow: Optional[str] =None,
29
30
**kwargs
30
31
):
31
32
"""
32
-
:param is_document_preparation_needed: Indicates if the sender should receive a `prepare_url` in the response to complete document preparation using the UI., defaults to None
:param email_subject: Subject of sign request email. This is cleaned by sign request. If this field is not passed, a default subject will be used., defaults to None
41
-
:type email_subject: Optional[str], optional
42
-
:param email_message: Message to include in sign request email. The field is cleaned through sanitization of specific characters. However, some html tags are allowed. Links included in the message are also converted to hyperlinks in the email. The message may contain the following html tags including `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong`. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used., defaults to None
43
-
:type email_message: Optional[str], optional
44
-
:param are_reminders_enabled: Reminds signers to sign a document on day 3, 8, 13 and 18. Reminders are only sent to outstanding signers., defaults to None
:param name: Name of the signature request., defaults to None
47
-
:type name: Optional[str], optional
48
-
:param prefill_tags: When a document contains sign-related tags in the content, you can prefill them using this `prefill_tags` by referencing the 'id' of the tag as the `external_id` field of the prefill tag., defaults to None
:param days_valid: Set the number of days after which the created signature request will automatically expire if not completed. By default, we do not apply any expiration date on signature requests, and the signature request does not expire., defaults to None
51
-
:type days_valid: Optional[int], optional
52
-
:param external_id: This can be used to reference an ID in an external system that the sign request is related to., defaults to None
53
-
:type external_id: Optional[str], optional
54
-
:param template_id: When a signature request is created from a template this field will indicate the id of that template., defaults to None
55
-
:type template_id: Optional[str], optional
56
-
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned the `embed_url_external_id`., defaults to None
:param is_document_preparation_needed: Indicates if the sender should receive a `prepare_url` in the response to complete document preparation using the UI., defaults to None
:param email_subject: Subject of sign request email. This is cleaned by sign request. If this field is not passed, a default subject will be used., defaults to None
42
+
:type email_subject: Optional[str], optional
43
+
:param email_message: Message to include in sign request email. The field is cleaned through sanitization of specific characters. However, some html tags are allowed. Links included in the message are also converted to hyperlinks in the email. The message may contain the following html tags including `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong`. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used., defaults to None
44
+
:type email_message: Optional[str], optional
45
+
:param are_reminders_enabled: Reminds signers to sign a document on day 3, 8, 13 and 18. Reminders are only sent to outstanding signers., defaults to None
:param name: Name of the signature request., defaults to None
48
+
:type name: Optional[str], optional
49
+
:param prefill_tags: When a document contains sign-related tags in the content, you can prefill them using this `prefill_tags` by referencing the 'id' of the tag as the `external_id` field of the prefill tag., defaults to None
:param days_valid: Set the number of days after which the created signature request will automatically expire if not completed. By default, we do not apply any expiration date on signature requests, and the signature request does not expire., defaults to None
52
+
:type days_valid: Optional[int], optional
53
+
:param external_id: This can be used to reference an ID in an external system that the sign request is related to., defaults to None
54
+
:type external_id: Optional[str], optional
55
+
:param template_id: When a signature request is created from a template this field will indicate the id of that template., defaults to None
56
+
:type template_id: Optional[str], optional
57
+
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned the `embed_url_external_id`., defaults to None
Copy file name to clipboardExpand all lines: box_sdk_gen/schemas/sign_request_create_request.py
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ def __init__(
44
44
external_id: Optional[str] =None,
45
45
template_id: Optional[str] =None,
46
46
external_system_name: Optional[str] =None,
47
+
request_flow: Optional[str] =None,
47
48
**kwargs
48
49
):
49
50
"""
@@ -86,6 +87,9 @@ def __init__(
86
87
:type template_id: Optional[str], optional
87
88
:param external_system_name: Used as an optional system name to appear in the signature log next to the signers who have been assigned the `embed_url_external_id`., defaults to None
0 commit comments