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

box / box-java-sdk-gen / #96

09 May 2025 01:16PM UTC coverage: 35.312% (+0.1%) from 35.204%
#96

push

github

web-flow
fix: Fix conversion of `mdfilters` into query parameters (box/box-codegen#721) (#301)

5 of 7 new or added lines in 1 file covered. (71.43%)

287 existing lines in 27 files now uncovered.

15468 of 43804 relevant lines covered (35.31%)

0.35 hits per line

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

5.56
/src/main/java/com/box/sdkgen/schemas/aiagentbasicgentool/AiAgentBasicGenTool.java
1
package com.box.sdkgen.schemas.aiagentbasicgentool;
2

3
import com.box.sdkgen.schemas.aiagentlongtexttooltextgen.AiAgentLongTextToolTextGen;
4
import com.box.sdkgen.schemas.aiagentlongtexttooltextgen.AiAgentLongTextToolTextGenEmbeddingsField;
5
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
public class AiAgentBasicGenTool extends AiAgentLongTextToolTextGen {
10

11
  @JsonProperty("content_template")
12
  protected String contentTemplate;
13

14
  public AiAgentBasicGenTool() {
15
    super();
1✔
16
  }
1✔
17

18
  protected AiAgentBasicGenTool(AiAgentBasicGenToolBuilder builder) {
19
    super(builder);
×
20
    this.contentTemplate = builder.contentTemplate;
×
21
  }
×
22

23
  public String getContentTemplate() {
24
    return contentTemplate;
×
25
  }
26

27
  @Override
28
  public boolean equals(Object o) {
29
    if (this == o) {
×
30
      return true;
×
31
    }
32
    if (o == null || getClass() != o.getClass()) {
×
33
      return false;
×
34
    }
35
    AiAgentBasicGenTool casted = (AiAgentBasicGenTool) o;
×
36
    return Objects.equals(model, casted.model)
×
37
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
38
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
39
        && Objects.equals(systemMessage, casted.systemMessage)
×
40
        && Objects.equals(promptTemplate, casted.promptTemplate)
×
41
        && Objects.equals(embeddings, casted.embeddings)
×
42
        && Objects.equals(contentTemplate, casted.contentTemplate);
×
43
  }
44

45
  @Override
46
  public int hashCode() {
47
    return Objects.hash(
×
48
        model,
49
        numTokensForCompletion,
50
        llmEndpointParams,
51
        systemMessage,
52
        promptTemplate,
53
        embeddings,
54
        contentTemplate);
55
  }
56

57
  @Override
58
  public String toString() {
59
    return "AiAgentBasicGenTool{"
×
60
        + "model='"
61
        + model
62
        + '\''
63
        + ", "
64
        + "numTokensForCompletion='"
65
        + numTokensForCompletion
66
        + '\''
67
        + ", "
68
        + "llmEndpointParams='"
69
        + llmEndpointParams
70
        + '\''
71
        + ", "
72
        + "systemMessage='"
73
        + systemMessage
74
        + '\''
75
        + ", "
76
        + "promptTemplate='"
77
        + promptTemplate
78
        + '\''
79
        + ", "
80
        + "embeddings='"
81
        + embeddings
82
        + '\''
83
        + ", "
84
        + "contentTemplate='"
85
        + contentTemplate
86
        + '\''
87
        + "}";
88
  }
89

90
  public static class AiAgentBasicGenToolBuilder extends AiAgentLongTextToolTextGenBuilder {
×
91

92
    protected String contentTemplate;
93

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

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

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

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

117
    @Override
118
    public AiAgentBasicGenToolBuilder systemMessage(String systemMessage) {
UNCOV
119
      this.systemMessage = systemMessage;
×
UNCOV
120
      return this;
×
121
    }
122

123
    @Override
124
    public AiAgentBasicGenToolBuilder promptTemplate(String promptTemplate) {
UNCOV
125
      this.promptTemplate = promptTemplate;
×
UNCOV
126
      return this;
×
127
    }
128

129
    @Override
130
    public AiAgentBasicGenToolBuilder embeddings(
131
        AiAgentLongTextToolTextGenEmbeddingsField embeddings) {
UNCOV
132
      this.embeddings = embeddings;
×
UNCOV
133
      return this;
×
134
    }
135

136
    public AiAgentBasicGenTool build() {
UNCOV
137
      return new AiAgentBasicGenTool(this);
×
138
    }
139
  }
140
}
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