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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.25
/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.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
public class AiAgentBasicTextTool extends AiAgentBasicTextToolBase {
9

10
  @JsonProperty("system_message")
11
  protected String systemMessage;
12

13
  @JsonProperty("prompt_template")
14
  protected String promptTemplate;
15

16
  public AiAgentBasicTextTool() {
17
    super();
1✔
18
  }
1✔
19

20
  protected AiAgentBasicTextTool(Builder builder) {
21
    super(builder);
×
22
    this.systemMessage = builder.systemMessage;
×
23
    this.promptTemplate = builder.promptTemplate;
×
24
  }
×
25

26
  public String getSystemMessage() {
27
    return systemMessage;
×
28
  }
29

30
  public String getPromptTemplate() {
31
    return promptTemplate;
×
32
  }
33

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

50
  @Override
51
  public int hashCode() {
52
    return Objects.hash(
×
53
        model, numTokensForCompletion, llmEndpointParams, systemMessage, promptTemplate);
54
  }
55

56
  @Override
57
  public String toString() {
58
    return "AiAgentBasicTextTool{"
×
59
        + "model='"
60
        + model
61
        + '\''
62
        + ", "
63
        + "numTokensForCompletion='"
64
        + numTokensForCompletion
65
        + '\''
66
        + ", "
67
        + "llmEndpointParams='"
68
        + llmEndpointParams
69
        + '\''
70
        + ", "
71
        + "systemMessage='"
72
        + systemMessage
73
        + '\''
74
        + ", "
75
        + "promptTemplate='"
76
        + promptTemplate
77
        + '\''
78
        + "}";
79
  }
80

NEW
81
  public static class Builder extends AiAgentBasicTextToolBase.Builder {
×
82

83
    protected String systemMessage;
84

85
    protected String promptTemplate;
86

87
    public Builder systemMessage(String systemMessage) {
88
      this.systemMessage = systemMessage;
×
89
      return this;
×
90
    }
91

92
    public Builder promptTemplate(String promptTemplate) {
93
      this.promptTemplate = promptTemplate;
×
94
      return this;
×
95
    }
96

97
    @Override
98
    public Builder model(String model) {
99
      this.model = model;
×
100
      return this;
×
101
    }
102

103
    @Override
104
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
105
      this.numTokensForCompletion = numTokensForCompletion;
×
106
      return this;
×
107
    }
108

109
    @Override
110
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
111
      this.llmEndpointParams = llmEndpointParams;
×
112
      return this;
×
113
    }
114

115
    public AiAgentBasicTextTool build() {
116
      return new AiAgentBasicTextTool(this);
×
117
    }
118
  }
119
}
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