• 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

6.67
/src/main/java/com/box/sdkgen/schemas/aiagentbasicgentool/AiAgentBasicGenTool.java
1
package com.box.sdkgen.schemas.aiagentbasicgentool;
2

3
import com.box.sdkgen.schemas.aiagentlongtexttooltextgen.AiAgentLongTextToolTextGen;
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 AiAgentBasicGenTool extends AiAgentLongTextToolTextGen {
17

18
  /**
19
   * How the content should be included in a request to the LLM. Input for `{content}` is optional,
20
   * depending on the use.
21
   */
22
  @JsonProperty("content_template")
23
  protected String contentTemplate;
24

25
  public AiAgentBasicGenTool() {
26
    super();
1✔
27
  }
1✔
28

29
  protected AiAgentBasicGenTool(Builder builder) {
30
    super(builder);
×
31
    this.contentTemplate = builder.contentTemplate;
×
32
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
33
  }
×
34

35
  public String getContentTemplate() {
36
    return contentTemplate;
1✔
37
  }
38

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

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

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

102
  public static class Builder extends AiAgentLongTextToolTextGen.Builder {
×
103

104
    protected String contentTemplate;
105

106
    public Builder contentTemplate(String contentTemplate) {
107
      this.contentTemplate = contentTemplate;
×
108
      return this;
×
109
    }
110

111
    @Override
112
    public Builder model(String model) {
113
      this.model = model;
×
114
      return this;
×
115
    }
116

117
    @Override
118
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
119
      this.numTokensForCompletion = numTokensForCompletion;
×
120
      return this;
×
121
    }
122

123
    @Override
124
    public Builder llmEndpointParams(AiLlmEndpointParamsOpenAi llmEndpointParams) {
125
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
126
      return this;
×
127
    }
128

129
    @Override
130
    public Builder llmEndpointParams(AiLlmEndpointParamsGoogle llmEndpointParams) {
131
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
132
      return this;
×
133
    }
134

135
    @Override
136
    public Builder llmEndpointParams(AiLlmEndpointParamsAws llmEndpointParams) {
137
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
138
      return this;
×
139
    }
140

141
    @Override
142
    public Builder llmEndpointParams(AiLlmEndpointParamsIbm llmEndpointParams) {
143
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
144
      return this;
×
145
    }
146

147
    @Override
148
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
149
      this.llmEndpointParams = llmEndpointParams;
×
150
      return this;
×
151
    }
152

153
    @Override
154
    public Builder systemMessage(String systemMessage) {
155
      this.systemMessage = systemMessage;
×
156
      return this;
×
157
    }
158

159
    @Override
160
    public Builder promptTemplate(String promptTemplate) {
161
      this.promptTemplate = promptTemplate;
×
162
      return this;
×
163
    }
164

165
    @Override
166
    public Builder embeddings(AiAgentLongTextToolTextGenEmbeddingsField embeddings) {
167
      this.embeddings = embeddings;
×
168
      return this;
×
169
    }
170

171
    public AiAgentBasicGenTool build() {
172
      return new AiAgentBasicGenTool(this);
×
173
    }
174
  }
175
}
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