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

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

13
/** AI agent processor used to handle basic text. */
14
@JsonFilter("nullablePropertyFilter")
15
public class AiStudioAgentBasicTextTool extends AiAgentBasicTextTool {
16

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

21
  public AiStudioAgentBasicTextTool() {
22
    super();
×
23
  }
×
24

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

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

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

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

63
  @Override
64
  public String toString() {
65
    return "AiStudioAgentBasicTextTool{"
×
66
        + "model='"
67
        + model
68
        + '\''
69
        + ", "
70
        + "numTokensForCompletion='"
71
        + numTokensForCompletion
72
        + '\''
73
        + ", "
74
        + "llmEndpointParams='"
75
        + llmEndpointParams
76
        + '\''
77
        + ", "
78
        + "systemMessage='"
79
        + systemMessage
80
        + '\''
81
        + ", "
82
        + "promptTemplate='"
83
        + promptTemplate
84
        + '\''
85
        + ", "
86
        + "isCustomInstructionsIncluded='"
87
        + isCustomInstructionsIncluded
88
        + '\''
89
        + "}";
90
  }
91

92
  public static class Builder extends AiAgentBasicTextTool.Builder {
×
93

94
    protected Boolean isCustomInstructionsIncluded;
95

96
    public Builder isCustomInstructionsIncluded(Boolean isCustomInstructionsIncluded) {
97
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
98
      return this;
×
99
    }
100

101
    @Override
102
    public Builder model(String model) {
103
      this.model = model;
×
104
      return this;
×
105
    }
106

107
    @Override
108
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
109
      this.numTokensForCompletion = numTokensForCompletion;
×
110
      return this;
×
111
    }
112

113
    @Override
114
    public Builder llmEndpointParams(AiLlmEndpointParamsOpenAi llmEndpointParams) {
115
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
116
      return this;
×
117
    }
118

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

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

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

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

143
    @Override
144
    public Builder systemMessage(String systemMessage) {
145
      this.systemMessage = systemMessage;
×
146
      return this;
×
147
    }
148

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

155
    public AiStudioAgentBasicTextTool build() {
156
      return new AiStudioAgentBasicTextTool(this);
×
157
    }
158
  }
159
}
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