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

box / box-java-sdk / #5808

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

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/aiextractstructured/AiExtractStructured.java
1
package com.box.sdkgen.schemas.aiextractstructured;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aiagentextractstructured.AiAgentExtractStructured;
6
import com.box.sdkgen.schemas.aiagentreference.AiAgentReference;
7
import com.box.sdkgen.schemas.aiextractstructuredagent.AiExtractStructuredAgent;
8
import com.box.sdkgen.schemas.aiitembase.AiItemBase;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import java.util.List;
12
import java.util.Objects;
13

14
/** AI Extract Structured Request object. */
15
@JsonFilter("nullablePropertyFilter")
16
public class AiExtractStructured extends SerializableObject {
17

18
  /** The items to be processed by the LLM. Currently you can use files only. */
19
  protected final List<AiItemBase> items;
20

21
  /**
22
   * The metadata template containing the fields to extract. For your request to work, you must
23
   * provide either `metadata_template` or `fields`, but not both.
24
   */
25
  @JsonProperty("metadata_template")
26
  protected AiExtractStructuredMetadataTemplateField metadataTemplate;
27

28
  /**
29
   * The fields to be extracted from the provided items. For your request to work, you must provide
30
   * either `metadata_template` or `fields`, but not both.
31
   */
32
  protected List<AiExtractStructuredFieldsField> fields;
33

34
  @JsonProperty("ai_agent")
35
  protected AiExtractStructuredAgent aiAgent;
36

37
  public AiExtractStructured(@JsonProperty("items") List<AiItemBase> items) {
38
    super();
×
39
    this.items = items;
×
40
  }
×
41

42
  protected AiExtractStructured(Builder builder) {
43
    super();
×
44
    this.items = builder.items;
×
45
    this.metadataTemplate = builder.metadataTemplate;
×
46
    this.fields = builder.fields;
×
47
    this.aiAgent = builder.aiAgent;
×
48
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
49
  }
×
50

51
  public List<AiItemBase> getItems() {
52
    return items;
×
53
  }
54

55
  public AiExtractStructuredMetadataTemplateField getMetadataTemplate() {
56
    return metadataTemplate;
×
57
  }
58

59
  public List<AiExtractStructuredFieldsField> getFields() {
60
    return fields;
×
61
  }
62

63
  public AiExtractStructuredAgent getAiAgent() {
64
    return aiAgent;
×
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
    AiExtractStructured casted = (AiExtractStructured) o;
×
76
    return Objects.equals(items, casted.items)
×
77
        && Objects.equals(metadataTemplate, casted.metadataTemplate)
×
78
        && Objects.equals(fields, casted.fields)
×
79
        && Objects.equals(aiAgent, casted.aiAgent);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
NEW
84
    return Objects.hash(items, metadataTemplate, fields, aiAgent);
×
85
  }
86

87
  @Override
88
  public String toString() {
89
    return "AiExtractStructured{"
×
90
        + "items='"
91
        + items
92
        + '\''
93
        + ", "
94
        + "metadataTemplate='"
95
        + metadataTemplate
96
        + '\''
97
        + ", "
98
        + "fields='"
99
        + fields
100
        + '\''
101
        + ", "
102
        + "aiAgent='"
103
        + aiAgent
104
        + '\''
105
        + "}";
106
  }
107

108
  public static class Builder extends NullableFieldTracker {
109

110
    protected final List<AiItemBase> items;
111

112
    protected AiExtractStructuredMetadataTemplateField metadataTemplate;
113

114
    protected List<AiExtractStructuredFieldsField> fields;
115

116
    protected AiExtractStructuredAgent aiAgent;
117

118
    public Builder(List<AiItemBase> items) {
119
      super();
×
120
      this.items = items;
×
121
    }
×
122

123
    public Builder metadataTemplate(AiExtractStructuredMetadataTemplateField metadataTemplate) {
124
      this.metadataTemplate = metadataTemplate;
×
125
      return this;
×
126
    }
127

128
    public Builder fields(List<AiExtractStructuredFieldsField> fields) {
129
      this.fields = fields;
×
130
      return this;
×
131
    }
132

133
    public Builder aiAgent(AiAgentReference aiAgent) {
134
      this.aiAgent = new AiExtractStructuredAgent(aiAgent);
×
135
      return this;
×
136
    }
137

138
    public Builder aiAgent(AiAgentExtractStructured aiAgent) {
139
      this.aiAgent = new AiExtractStructuredAgent(aiAgent);
×
140
      return this;
×
141
    }
142

143
    public Builder aiAgent(AiExtractStructuredAgent aiAgent) {
144
      this.aiAgent = aiAgent;
×
145
      return this;
×
146
    }
147

148
    public AiExtractStructured build() {
149
      return new AiExtractStructured(this);
×
150
    }
151
  }
152
}
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