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: BoxSdkGen/Sources/Schemas/AiExtractStructuredResponse/AiExtractStructuredResponse.swift
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ public class AiExtractStructuredResponse: Codable, RawJSONReadable {
6
6
case answer
7
7
case createdAt ="created_at"
8
8
case completionReason ="completion_reason"
9
+
case confidenceScore ="confidence_score"
9
10
case aiAgentInfo ="ai_agent_info"
10
11
}
11
12
@@ -26,6 +27,9 @@ public class AiExtractStructuredResponse: Codable, RawJSONReadable {
26
27
/// The reason the response finishes.
27
28
publicletcompletionReason:String?
28
29
30
+
/// The confidence score numeric values for each extracted field as a JSON dictionary. This can be empty if no field could be extracted.
31
+
publicletconfidenceScore:[String:AnyCodable]?
32
+
29
33
publicletaiAgentInfo:AiAgentInfo?
30
34
31
35
/// Initializer for a AiExtractStructuredResponse.
@@ -34,11 +38,13 @@ public class AiExtractStructuredResponse: Codable, RawJSONReadable {
34
38
/// - answer:
35
39
/// - createdAt: The ISO date formatted timestamp of when the answer to the prompt was created.
36
40
/// - completionReason: The reason the response finishes.
41
+
/// - confidenceScore: The confidence score numeric values for each extracted field as a JSON dictionary. This can be empty if no field could be extracted.
0 commit comments