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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

68 of 82 new or added lines in 2 files covered. (82.93%)

11820 existing lines in 631 files now uncovered.

16946 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

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

9
@JsonFilter("nullablePropertyFilter")
10
public class AiAgentBasicTextTool extends AiAgentBasicTextToolBase {
11

12
  @JsonProperty("system_message")
13
  protected String systemMessage;
14

15
  @JsonProperty("prompt_template")
16
  protected String promptTemplate;
17

18
  public AiAgentBasicTextTool() {
19
    super();
1✔
20
  }
1✔
21

22
  protected AiAgentBasicTextTool(Builder builder) {
23
    super(builder);
×
24
    this.systemMessage = builder.systemMessage;
×
UNCOV
25
    this.promptTemplate = builder.promptTemplate;
×
UNCOV
26
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
27
  }
×
28

29
  public String getSystemMessage() {
UNCOV
30
    return systemMessage;
×
31
  }
32

33
  public String getPromptTemplate() {
UNCOV
34
    return promptTemplate;
×
35
  }
36

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

53
  @Override
54
  public int hashCode() {
UNCOV
55
    return Objects.hash(
×
56
        model, numTokensForCompletion, llmEndpointParams, systemMessage, promptTemplate);
57
  }
58

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

UNCOV
84
  public static class Builder extends AiAgentBasicTextToolBase.Builder {
×
85

86
    protected String systemMessage;
87

88
    protected String promptTemplate;
89

90
    public Builder systemMessage(String systemMessage) {
UNCOV
91
      this.systemMessage = systemMessage;
×
UNCOV
92
      return this;
×
93
    }
94

95
    public Builder promptTemplate(String promptTemplate) {
UNCOV
96
      this.promptTemplate = promptTemplate;
×
UNCOV
97
      return this;
×
98
    }
99

100
    @Override
101
    public Builder model(String model) {
UNCOV
102
      this.model = model;
×
UNCOV
103
      return this;
×
104
    }
105

106
    @Override
107
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
UNCOV
108
      this.numTokensForCompletion = numTokensForCompletion;
×
UNCOV
109
      return this;
×
110
    }
111

112
    @Override
113
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
UNCOV
114
      this.llmEndpointParams = llmEndpointParams;
×
UNCOV
115
      return this;
×
116
    }
117

118
    public AiAgentBasicTextTool build() {
UNCOV
119
      return new AiAgentBasicTextTool(this);
×
120
    }
121
  }
122
}
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