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

box / box-java-sdk / #5812

10 Dec 2025 01:18PM UTC coverage: 13.282% (-0.006%) from 13.288%
#5812

push

github

web-flow
feat(boxsdkgen): Remove `confidence_score` and `include_confidence_score` from AI extract (box/box-openapi#567) (#1614)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

0 of 2 new or added lines in 2 files covered. (0.0%)

15 existing lines in 9 files now uncovered.

8368 of 63001 relevant lines covered (13.28%)

0.13 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java
1
package com.box.sdkgen.schemas.aiextractstructuredresponse;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.aiagentinfo.AiAgentInfo;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.time.OffsetDateTime;
12
import java.util.Map;
13
import java.util.Objects;
14

15
/** AI extract structured response. */
16
@JsonFilter("nullablePropertyFilter")
17
public class AiExtractStructuredResponse extends SerializableObject {
18

19
  protected final Map<String, Object> answer;
20

21
  /** The ISO date formatted timestamp of when the answer to the prompt was created. */
22
  @JsonProperty("created_at")
23
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
24
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
25
  protected final OffsetDateTime createdAt;
26

27
  /** The reason the response finishes. */
28
  @JsonProperty("completion_reason")
29
  protected String completionReason;
30

31
  @JsonProperty("ai_agent_info")
32
  protected AiAgentInfo aiAgentInfo;
33

34
  public AiExtractStructuredResponse(
35
      @JsonProperty("answer") Map<String, Object> answer,
36
      @JsonProperty("created_at") OffsetDateTime createdAt) {
37
    super();
×
38
    this.answer = answer;
×
39
    this.createdAt = createdAt;
×
40
  }
×
41

42
  protected AiExtractStructuredResponse(Builder builder) {
43
    super();
×
44
    this.answer = builder.answer;
×
45
    this.createdAt = builder.createdAt;
×
46
    this.completionReason = builder.completionReason;
×
47
    this.aiAgentInfo = builder.aiAgentInfo;
×
48
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
49
  }
×
50

51
  public Map<String, Object> getAnswer() {
52
    return answer;
×
53
  }
54

55
  public OffsetDateTime getCreatedAt() {
56
    return createdAt;
×
57
  }
58

59
  public String getCompletionReason() {
60
    return completionReason;
×
61
  }
62

63
  public AiAgentInfo getAiAgentInfo() {
64
    return aiAgentInfo;
×
65
  }
66

67
  @Override
68
  public boolean equals(Object o) {
69
    if (this == o) {
×
70
      return true;
×
71
    }
72
    if (o == null || getClass() != o.getClass()) {
×
73
      return false;
×
74
    }
75
    AiExtractStructuredResponse casted = (AiExtractStructuredResponse) o;
×
76
    return Objects.equals(answer, casted.answer)
×
77
        && Objects.equals(createdAt, casted.createdAt)
×
78
        && Objects.equals(completionReason, casted.completionReason)
×
79
        && Objects.equals(aiAgentInfo, casted.aiAgentInfo);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
NEW
84
    return Objects.hash(answer, createdAt, completionReason, aiAgentInfo);
×
85
  }
86

87
  @Override
88
  public String toString() {
89
    return "AiExtractStructuredResponse{"
×
90
        + "answer='"
91
        + answer
92
        + '\''
93
        + ", "
94
        + "createdAt='"
95
        + createdAt
96
        + '\''
97
        + ", "
98
        + "completionReason='"
99
        + completionReason
100
        + '\''
101
        + ", "
102
        + "aiAgentInfo='"
103
        + aiAgentInfo
104
        + '\''
105
        + "}";
106
  }
107

108
  public static class Builder extends NullableFieldTracker {
109

110
    protected final Map<String, Object> answer;
111

112
    protected final OffsetDateTime createdAt;
113

114
    protected String completionReason;
115

116
    protected AiAgentInfo aiAgentInfo;
117

118
    public Builder(Map<String, Object> answer, OffsetDateTime createdAt) {
119
      super();
×
120
      this.answer = answer;
×
121
      this.createdAt = createdAt;
×
122
    }
×
123

124
    public Builder completionReason(String completionReason) {
125
      this.completionReason = completionReason;
×
126
      return this;
×
127
    }
128

129
    public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) {
130
      this.aiAgentInfo = aiAgentInfo;
×
131
      return this;
×
132
    }
133

134
    public AiExtractStructuredResponse build() {
135
      return new AiExtractStructuredResponse(this);
×
136
    }
137
  }
138
}
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

© 2025 Coveralls, Inc