• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk-gen / #541

05 Sep 2025 02:31PM UTC coverage: 7.451% (-29.2%) from 36.66%
#541

push

other

web-flow
chore: release version 0.8.1 (#437)

1 of 1 new or added line in 1 file covered. (100.0%)

14652 existing lines in 1191 files now uncovered.

3737 of 50151 relevant lines covered (7.45%)

0.07 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/aiagentbasictexttooltextgen/AiAgentBasicTextToolTextGen.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
@JsonFilter("nullablePropertyFilter")
14
public class AiAgentBasicTextTool extends AiAgentBasicTextToolBase {
15

16
  @JsonProperty("system_message")
17
  protected String systemMessage;
18

19
  @JsonProperty("prompt_template")
20
  protected String promptTemplate;
21

22
  public AiAgentBasicTextTool() {
UNCOV
23
    super();
×
UNCOV
24
  }
×
25

26
  protected AiAgentBasicTextTool(Builder builder) {
UNCOV
27
    super(builder);
×
UNCOV
28
    this.systemMessage = builder.systemMessage;
×
UNCOV
29
    this.promptTemplate = builder.promptTemplate;
×
UNCOV
30
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
31
  }
×
32

33
  public String getSystemMessage() {
UNCOV
34
    return systemMessage;
×
35
  }
36

37
  public String getPromptTemplate() {
UNCOV
38
    return promptTemplate;
×
39
  }
40

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

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

63
  @Override
64
  public String toString() {
65
    return "AiAgentBasicTextTool{"
×
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
  }
87

UNCOV
88
  public static class Builder extends AiAgentBasicTextToolBase.Builder {
×
89

90
    protected String systemMessage;
91

92
    protected String promptTemplate;
93

94
    public Builder systemMessage(String systemMessage) {
95
      this.systemMessage = systemMessage;
×
96
      return this;
×
97
    }
98

99
    public Builder promptTemplate(String promptTemplate) {
100
      this.promptTemplate = promptTemplate;
×
101
      return this;
×
102
    }
103

104
    @Override
105
    public Builder model(String model) {
106
      this.model = model;
×
107
      return this;
×
108
    }
109

110
    @Override
111
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
112
      this.numTokensForCompletion = numTokensForCompletion;
×
113
      return this;
×
114
    }
115

116
    @Override
117
    public Builder llmEndpointParams(AiLlmEndpointParamsOpenAi llmEndpointParams) {
118
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
119
      return this;
×
120
    }
121

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

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

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

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

146
    public AiAgentBasicTextTool build() {
147
      return new AiAgentBasicTextTool(this);
×
148
    }
149
  }
150
}
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