• 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

7.14
/src/main/java/com/box/sdkgen/schemas/aiagentbasictexttoolbase/AiAgentBasicTextToolBase.java
1
package com.box.sdkgen.schemas.aiagentbasictexttoolbase;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import java.util.Objects;
7

8
public class AiAgentBasicTextToolBase extends SerializableObject {
9

10
  protected String model;
11

12
  @JsonProperty("num_tokens_for_completion")
13
  protected Long numTokensForCompletion;
14

15
  @JsonProperty("llm_endpoint_params")
16
  protected AiLlmEndpointParams llmEndpointParams;
17

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

22
  protected AiAgentBasicTextToolBase(AiAgentBasicTextToolBaseBuilder builder) {
UNCOV
23
    super();
×
24
    this.model = builder.model;
×
25
    this.numTokensForCompletion = builder.numTokensForCompletion;
×
26
    this.llmEndpointParams = builder.llmEndpointParams;
×
27
  }
×
28

29
  public String getModel() {
UNCOV
30
    return model;
×
31
  }
32

33
  public Long getNumTokensForCompletion() {
UNCOV
34
    return numTokensForCompletion;
×
35
  }
36

37
  public AiLlmEndpointParams getLlmEndpointParams() {
UNCOV
38
    return llmEndpointParams;
×
39
  }
40

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

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

60
  @Override
61
  public String toString() {
UNCOV
62
    return "AiAgentBasicTextToolBase{"
×
63
        + "model='"
64
        + model
65
        + '\''
66
        + ", "
67
        + "numTokensForCompletion='"
68
        + numTokensForCompletion
69
        + '\''
70
        + ", "
71
        + "llmEndpointParams='"
72
        + llmEndpointParams
73
        + '\''
74
        + "}";
75
  }
76

UNCOV
77
  public static class AiAgentBasicTextToolBaseBuilder {
×
78

79
    protected String model;
80

81
    protected Long numTokensForCompletion;
82

83
    protected AiLlmEndpointParams llmEndpointParams;
84

85
    public AiAgentBasicTextToolBaseBuilder model(String model) {
UNCOV
86
      this.model = model;
×
UNCOV
87
      return this;
×
88
    }
89

90
    public AiAgentBasicTextToolBaseBuilder numTokensForCompletion(Long numTokensForCompletion) {
UNCOV
91
      this.numTokensForCompletion = numTokensForCompletion;
×
UNCOV
92
      return this;
×
93
    }
94

95
    public AiAgentBasicTextToolBaseBuilder llmEndpointParams(
96
        AiLlmEndpointParams llmEndpointParams) {
UNCOV
97
      this.llmEndpointParams = llmEndpointParams;
×
UNCOV
98
      return this;
×
99
    }
100

101
    public AiAgentBasicTextToolBase build() {
102
      return new AiAgentBasicTextToolBase(this);
×
103
    }
104
  }
105
}
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