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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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/aistudioagentlongtexttool/AiStudioAgentLongTextTool.java
1
package com.box.sdkgen.schemas.aistudioagentlongtexttool;
2

3
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextTool;
4
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextToolEmbeddingsField;
5
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
6
import com.box.sdkgen.schemas.aillmendpointparamsaws.AiLlmEndpointParamsAws;
7
import com.box.sdkgen.schemas.aillmendpointparamsgoogle.AiLlmEndpointParamsGoogle;
8
import com.box.sdkgen.schemas.aillmendpointparamsibm.AiLlmEndpointParamsIbm;
9
import com.box.sdkgen.schemas.aillmendpointparamsopenai.AiLlmEndpointParamsOpenAi;
10
import com.fasterxml.jackson.annotation.JsonFilter;
11
import com.fasterxml.jackson.annotation.JsonProperty;
12
import java.util.Objects;
13

14
/** AI agent processor used to to handle longer text. */
15
@JsonFilter("nullablePropertyFilter")
16
public class AiStudioAgentLongTextTool extends AiAgentLongTextTool {
17

18
  /** True if system message contains custom instructions placeholder, false otherwise. */
19
  @JsonProperty("is_custom_instructions_included")
20
  protected Boolean isCustomInstructionsIncluded;
21

22
  public AiStudioAgentLongTextTool() {
23
    super();
×
24
  }
×
25

26
  protected AiStudioAgentLongTextTool(Builder builder) {
27
    super(builder);
×
28
    this.isCustomInstructionsIncluded = builder.isCustomInstructionsIncluded;
×
29
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
30
  }
×
31

32
  public Boolean getIsCustomInstructionsIncluded() {
33
    return isCustomInstructionsIncluded;
×
34
  }
35

36
  @Override
37
  public boolean equals(Object o) {
38
    if (this == o) {
×
39
      return true;
×
40
    }
41
    if (o == null || getClass() != o.getClass()) {
×
42
      return false;
×
43
    }
44
    AiStudioAgentLongTextTool casted = (AiStudioAgentLongTextTool) o;
×
45
    return Objects.equals(model, casted.model)
×
46
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
47
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
48
        && Objects.equals(systemMessage, casted.systemMessage)
×
49
        && Objects.equals(promptTemplate, casted.promptTemplate)
×
50
        && Objects.equals(embeddings, casted.embeddings)
×
51
        && Objects.equals(isCustomInstructionsIncluded, casted.isCustomInstructionsIncluded);
×
52
  }
53

54
  @Override
55
  public int hashCode() {
56
    return Objects.hash(
×
57
        model,
58
        numTokensForCompletion,
59
        llmEndpointParams,
60
        systemMessage,
61
        promptTemplate,
62
        embeddings,
63
        isCustomInstructionsIncluded);
64
  }
65

66
  @Override
67
  public String toString() {
68
    return "AiStudioAgentLongTextTool{"
×
69
        + "model='"
70
        + model
71
        + '\''
72
        + ", "
73
        + "numTokensForCompletion='"
74
        + numTokensForCompletion
75
        + '\''
76
        + ", "
77
        + "llmEndpointParams='"
78
        + llmEndpointParams
79
        + '\''
80
        + ", "
81
        + "systemMessage='"
82
        + systemMessage
83
        + '\''
84
        + ", "
85
        + "promptTemplate='"
86
        + promptTemplate
87
        + '\''
88
        + ", "
89
        + "embeddings='"
90
        + embeddings
91
        + '\''
92
        + ", "
93
        + "isCustomInstructionsIncluded='"
94
        + isCustomInstructionsIncluded
95
        + '\''
96
        + "}";
97
  }
98

99
  public static class Builder extends AiAgentLongTextTool.Builder {
×
100

101
    protected Boolean isCustomInstructionsIncluded;
102

103
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
104
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
105
      return this;
×
106
    }
107

108
    @Override
109
    public Builder model(String model) {
110
      this.model = model;
×
111
      return this;
×
112
    }
113

114
    @Override
115
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
116
      this.numTokensForCompletion = numTokensForCompletion;
×
117
      return this;
×
118
    }
119

120
    @Override
121
    public Builder llmEndpointParams(AiLlmEndpointParamsOpenAi llmEndpointParams) {
122
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
123
      return this;
×
124
    }
125

126
    @Override
127
    public Builder llmEndpointParams(AiLlmEndpointParamsGoogle llmEndpointParams) {
128
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
129
      return this;
×
130
    }
131

132
    @Override
133
    public Builder llmEndpointParams(AiLlmEndpointParamsAws llmEndpointParams) {
134
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
135
      return this;
×
136
    }
137

138
    @Override
139
    public Builder llmEndpointParams(AiLlmEndpointParamsIbm llmEndpointParams) {
140
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
141
      return this;
×
142
    }
143

144
    @Override
145
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
146
      this.llmEndpointParams = llmEndpointParams;
×
147
      return this;
×
148
    }
149

150
    @Override
151
    public Builder systemMessage(String systemMessage) {
152
      this.systemMessage = systemMessage;
×
153
      return this;
×
154
    }
155

156
    @Override
157
    public Builder promptTemplate(String promptTemplate) {
158
      this.promptTemplate = promptTemplate;
×
159
      return this;
×
160
    }
161

162
    @Override
163
    public Builder embeddings(AiAgentLongTextToolEmbeddingsField embeddings) {
164
      this.embeddings = embeddings;
×
165
      return this;
×
166
    }
167

168
    public AiStudioAgentLongTextTool build() {
169
      return new AiStudioAgentLongTextTool(this);
×
170
    }
171
  }
172
}
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