• 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/aistudioagentbasicgentool/AiStudioAgentBasicGenTool.java
1
package com.box.sdkgen.schemas.aistudioagentbasicgentool;
2

3
import com.box.sdkgen.schemas.aiagentbasicgentool.AiAgentBasicGenTool;
4
import com.box.sdkgen.schemas.aiagentlongtexttooltextgen.AiAgentLongTextToolTextGenEmbeddingsField;
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 basic tool used to generate text. */
15
@JsonFilter("nullablePropertyFilter")
16
public class AiStudioAgentBasicGenTool extends AiAgentBasicGenTool {
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 AiStudioAgentBasicGenTool() {
23
    super();
×
24
  }
×
25

26
  protected AiStudioAgentBasicGenTool(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
    AiStudioAgentBasicGenTool casted = (AiStudioAgentBasicGenTool) 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(contentTemplate, casted.contentTemplate)
×
52
        && Objects.equals(isCustomInstructionsIncluded, casted.isCustomInstructionsIncluded);
×
53
  }
54

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

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

105
  public static class Builder extends AiAgentBasicGenTool.Builder {
×
106

107
    protected Boolean isCustomInstructionsIncluded;
108

109
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
110
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
111
      return this;
×
112
    }
113

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

120
    @Override
121
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
122
      this.numTokensForCompletion = numTokensForCompletion;
×
123
      return this;
×
124
    }
125

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

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

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

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

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

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

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

168
    @Override
169
    public Builder embeddings(AiAgentLongTextToolTextGenEmbeddingsField embeddings) {
170
      this.embeddings = embeddings;
×
171
      return this;
×
172
    }
173

174
    @Override
175
    public Builder contentTemplate(String contentTemplate) {
176
      this.contentTemplate = contentTemplate;
×
177
      return this;
×
178
    }
179

180
    public AiStudioAgentBasicGenTool build() {
181
      return new AiStudioAgentBasicGenTool(this);
×
182
    }
183
  }
184
}
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