• 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

24.39
/src/main/java/com/box/sdkgen/schemas/aiagentbasictexttool/AiAgentBasicTextTool.java
1
package com.box.sdkgen.schemas.aiagentbasictexttool;
2

3
import com.box.sdkgen.schemas.aiagentbasictexttoolbase.AiAgentBasicTextToolBase;
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 AiAgentBasicTextTool extends AiAgentBasicTextToolBase {
16

17
  /** System messages try to help the LLM "understand" its role and what it is supposed to do. */
18
  @JsonProperty("system_message")
19
  protected String systemMessage;
20

21
  /**
22
   * The prompt template contains contextual information of the request and the user prompt. When
23
   * passing `prompt_template` parameters, you **must include** inputs for `{user_question}` and
24
   * `{content}`. `{current_date}` is optional, depending on the use.
25
   */
26
  @JsonProperty("prompt_template")
27
  protected String promptTemplate;
28

29
  public AiAgentBasicTextTool() {
30
    super();
1✔
31
  }
1✔
32

33
  protected AiAgentBasicTextTool(Builder builder) {
34
    super(builder);
1✔
35
    this.systemMessage = builder.systemMessage;
1✔
36
    this.promptTemplate = builder.promptTemplate;
1✔
37
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
38
  }
1✔
39

40
  public String getSystemMessage() {
41
    return systemMessage;
1✔
42
  }
43

44
  public String getPromptTemplate() {
45
    return promptTemplate;
1✔
46
  }
47

48
  @Override
49
  public boolean equals(Object o) {
50
    if (this == o) {
×
51
      return true;
×
52
    }
53
    if (o == null || getClass() != o.getClass()) {
×
54
      return false;
×
55
    }
56
    AiAgentBasicTextTool casted = (AiAgentBasicTextTool) o;
×
57
    return Objects.equals(model, casted.model)
×
58
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
59
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
60
        && Objects.equals(systemMessage, casted.systemMessage)
×
61
        && Objects.equals(promptTemplate, casted.promptTemplate);
×
62
  }
63

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(
×
67
        model, numTokensForCompletion, llmEndpointParams, systemMessage, promptTemplate);
68
  }
69

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

95
  public static class Builder extends AiAgentBasicTextToolBase.Builder {
1✔
96

97
    protected String systemMessage;
98

99
    protected String promptTemplate;
100

101
    public Builder systemMessage(String systemMessage) {
102
      this.systemMessage = systemMessage;
×
103
      return this;
×
104
    }
105

106
    public Builder promptTemplate(String promptTemplate) {
107
      this.promptTemplate = promptTemplate;
×
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
    public AiAgentBasicTextTool build() {
154
      return new AiAgentBasicTextTool(this);
×
155
    }
156
  }
157
}
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