• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #4027

11 Oct 2024 12:22PM UTC coverage: 71.745% (+0.04%) from 71.703%
#4027

push

github

web-flow
feat: Support AI extract and AI extract structured (#1266)

125 of 167 new or added lines in 8 files covered. (74.85%)

1 existing line in 1 file now uncovered.

8039 of 11205 relevant lines covered (71.74%)

0.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/src/main/java/com/box/sdk/BoxAIExtractStructuredResponse.java
1
package com.box.sdk;
2

3
import com.eclipsesource.json.Json;
4
import com.eclipsesource.json.JsonObject;
5

6
/**
7
 * AI response to a user request.
8
 */
9
public class BoxAIExtractStructuredResponse extends BoxJSONObject {
10
    private final JsonObject sourceJson;
11

12
    /**
13
     * Constructs a BoxAIResponse object.
14
     */
15
    public BoxAIExtractStructuredResponse(String json) {
16
        super(json);
1✔
17
        this.sourceJson = Json.parse(json).asObject();
1✔
18
    }
1✔
19

20
    /**
21
     * Constructs an BoxAIResponse object using an already parsed JSON object.
22
     *
23
     * @param jsonObject the parsed JSON object.
24
     */
25
    BoxAIExtractStructuredResponse(JsonObject jsonObject) {
NEW
26
        super(jsonObject);
×
NEW
27
        this.sourceJson = jsonObject;
×
NEW
28
    }
×
29

30
    /**
31
     * Gets the source JSON of the AI response.
32
     *
33
     * @return the source JSON of the AI response.
34
     */
35
    public JsonObject getSourceJson() {
36
        return sourceJson;
1✔
37
    }
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc