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/AiManager.cs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,8 @@ public async System.Threading.Tasks.Task<AiAgentAskOrAiAgentExtractOrAiAgentExtr
73
73
74
74
/// <summary>
75
75
/// Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs.
76
-
/// Freeform metadata extraction does not require any metadata template setup before sending the request.
76
+
/// In this request, both the prompt and the output can be freeform.
77
+
/// Metadata template setup before sending the request is not required.
77
78
/// </summary>
78
79
/// <param name="requestBody">
79
80
/// Request body of createAiExtract method
@@ -93,7 +94,8 @@ public async System.Threading.Tasks.Task<AiResponse> CreateAiExtractAsync(AiExtr
93
94
94
95
/// <summary>
95
96
/// Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
96
-
/// For this request, you need to use an already defined metadata template or a define a schema yourself.
97
+
/// For this request, you either need a metadata template or a list of fields you want to extract.
98
+
/// Input is **either** a metadata template or a list of fields to ensure the structure.
97
99
/// 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)
98
100
/// or use the [metadata template API](g://metadata/templates/create).
Copy file name to clipboardExpand all lines: Box.Sdk.Gen/Managers/Ai/IAiManager.cs
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,8 @@ public interface IAiManager {
50
50
51
51
/// <summary>
52
52
/// Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs.
53
-
/// Freeform metadata extraction does not require any metadata template setup before sending the request.
53
+
/// In this request, both the prompt and the output can be freeform.
54
+
/// Metadata template setup before sending the request is not required.
54
55
/// </summary>
55
56
/// <param name="requestBody">
56
57
/// Request body of createAiExtract method
@@ -65,7 +66,8 @@ public interface IAiManager {
65
66
66
67
/// <summary>
67
68
/// Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
68
-
/// For this request, you need to use an already defined metadata template or a define a schema yourself.
69
+
/// For this request, you either need a metadata template or a list of fields you want to extract.
70
+
/// Input is **either** a metadata template or a list of fields to ensure the structure.
69
71
/// 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)
70
72
/// or use the [metadata template API](g://metadata/templates/create).
Copy file name to clipboardExpand all lines: docs/Ai.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,8 @@ The response depends on the agent configuration requested in this endpoint.
109
109
## Extract metadata (freeform)
110
110
111
111
Sends an AI request to supported Large Language Models (LLMs) and extracts metadata in form of key-value pairs.
112
-
Freeform metadata extraction does not require any metadata template setup before sending the request.
112
+
In this request, both the prompt and the output can be freeform.
113
+
Metadata template setup before sending the request is not required.
113
114
114
115
This operation is performed by calling function `CreateAiExtract`.
115
116
@@ -141,7 +142,8 @@ A response including the answer from the LLM.
141
142
## Extract metadata (structured)
142
143
143
144
Sends an AI request to supported Large Language Models (LLMs) and returns extracted metadata as a set of key-value pairs.
144
-
For this request, you need to use an already defined metadata template or a define a schema yourself.
145
+
For this request, you either need a metadata template or a list of fields you want to extract.
146
+
Input is **either** a metadata template or a list of fields to ensure the structure.
145
147
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)
146
148
or use the [metadata template API](g://metadata/templates/create).
0 commit comments