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: docs/ai.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,16 +22,16 @@ await client.ai.createAiAsk({
22
22
mode: 'multiple_item_qa'asAiAskModeField,
23
23
prompt: 'Which direction sun rises?',
24
24
items: [
25
-
newAiItemBase({
25
+
{
26
26
id: fileToAsk1.id,
27
-
type: 'file'asAiItemBaseTypeField,
27
+
type: 'file'asAiItemAskTypeField,
28
28
content: 'Earth goes around the sun',
29
-
}),
30
-
newAiItemBase({
29
+
}satisfiesAiItemAsk,
30
+
{
31
31
id: fileToAsk2.id,
32
-
type: 'file'asAiItemBaseTypeField,
32
+
type: 'file'asAiItemAskTypeField,
33
33
content: 'Sun rises in the East in the morning',
34
-
}),
34
+
}satisfiesAiItemAsk,
35
35
],
36
36
} satisfiesAiAsk);
37
37
```
@@ -45,9 +45,9 @@ await client.ai.createAiAsk({
45
45
46
46
### Returns
47
47
48
-
This function returns a value of type `AiResponseFull`.
48
+
This function returns a value of type `undefined | AiResponseFull`.
49
49
50
-
A successful response including the answer from the LLM.
50
+
A successful response including the answer from the LLM.No content is available to answer the question. This is returned when the request item is a hub, but content in the hubs is not indexed. To ensure content in the hub is indexed, make sure Box AI for Hubs in the Admin Console was enabled before hub creation.
0 commit comments