• 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

9.76
/src/main/java/com/box/sdkgen/schemas/aiagentbasictexttooltextgen/AiAgentBasicTextToolTextGen.java
1
package com.box.sdkgen.schemas.aiagentbasictexttooltextgen;
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 AiAgentBasicTextToolTextGen extends AiAgentBasicTextToolBase {
16

17
  /**
18
   * System messages aim at helping the LLM understand its role and what it is supposed to do. The
19
   * input for `{current_date}` is optional, depending on the use.
20
   */
21
  @JsonProperty("system_message")
22
  protected String systemMessage;
23

24
  /**
25
   * The prompt template contains contextual information of the request and the user prompt.
26
   *
27
   * <p>When using the `prompt_template` parameter, you **must include** input for
28
   * `{user_question}`. Inputs for `{current_date}` and `{content}` are optional, depending on the
29
   * use.
30
   */
31
  @JsonProperty("prompt_template")
32
  protected String promptTemplate;
33

34
  public AiAgentBasicTextToolTextGen() {
35
    super();
1✔
36
  }
1✔
37

38
  protected AiAgentBasicTextToolTextGen(Builder builder) {
39
    super(builder);
×
40
    this.systemMessage = builder.systemMessage;
×
41
    this.promptTemplate = builder.promptTemplate;
×
42
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
43
  }
×
44

45
  public String getSystemMessage() {
46
    return systemMessage;
1✔
47
  }
48

49
  public String getPromptTemplate() {
50
    return promptTemplate;
1✔
51
  }
52

53
  @Override
54
  public boolean equals(Object o) {
55
    if (this == o) {
×
56
      return true;
×
57
    }
58
    if (o == null || getClass() != o.getClass()) {
×
59
      return false;
×
60
    }
61
    AiAgentBasicTextToolTextGen casted = (AiAgentBasicTextToolTextGen) o;
×
62
    return Objects.equals(model, casted.model)
×
63
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
64
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
65
        && Objects.equals(systemMessage, casted.systemMessage)
×
66
        && Objects.equals(promptTemplate, casted.promptTemplate);
×
67
  }
68

69
  @Override
70
  public int hashCode() {
71
    return Objects.hash(
×
72
        model, numTokensForCompletion, llmEndpointParams, systemMessage, promptTemplate);
73
  }
74

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

100
  public static class Builder extends AiAgentBasicTextToolBase.Builder {
×
101

102
    protected String systemMessage;
103

104
    protected String promptTemplate;
105

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

111
    public Builder promptTemplate(String promptTemplate) {
112
      this.promptTemplate = promptTemplate;
×
113
      return this;
×
114
    }
115

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

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

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

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

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

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

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

158
    public AiAgentBasicTextToolTextGen build() {
159
      return new AiAgentBasicTextToolTextGen(this);
×
160
    }
161
  }
162
}
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