• 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

6.06
/src/main/java/com/box/sdkgen/schemas/aiagentlongtexttool/AiAgentLongTextTool.java
1
package com.box.sdkgen.schemas.aiagentlongtexttool;
2

3
import com.box.sdkgen.schemas.aiagentbasictexttool.AiAgentBasicTextTool;
4
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
5
import java.util.Objects;
6

7
public class AiAgentLongTextTool extends AiAgentBasicTextTool {
8

9
  protected AiAgentLongTextToolEmbeddingsField embeddings;
10

11
  public AiAgentLongTextTool() {
12
    super();
1✔
13
  }
1✔
14

15
  protected AiAgentLongTextTool(AiAgentLongTextToolBuilder builder) {
16
    super(builder);
×
17
    this.embeddings = builder.embeddings;
×
18
  }
×
19

20
  public AiAgentLongTextToolEmbeddingsField getEmbeddings() {
21
    return embeddings;
×
22
  }
23

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

41
  @Override
42
  public int hashCode() {
43
    return Objects.hash(
×
44
        model,
45
        numTokensForCompletion,
46
        llmEndpointParams,
47
        systemMessage,
48
        promptTemplate,
49
        embeddings);
50
  }
51

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

81
  public static class AiAgentLongTextToolBuilder extends AiAgentBasicTextToolBuilder {
×
82

83
    protected AiAgentLongTextToolEmbeddingsField embeddings;
84

85
    public AiAgentLongTextToolBuilder embeddings(AiAgentLongTextToolEmbeddingsField embeddings) {
86
      this.embeddings = embeddings;
×
87
      return this;
×
88
    }
89

90
    @Override
91
    public AiAgentLongTextToolBuilder model(String model) {
92
      this.model = model;
×
93
      return this;
×
94
    }
95

96
    @Override
97
    public AiAgentLongTextToolBuilder numTokensForCompletion(Long numTokensForCompletion) {
98
      this.numTokensForCompletion = numTokensForCompletion;
×
99
      return this;
×
100
    }
101

102
    @Override
103
    public AiAgentLongTextToolBuilder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
UNCOV
104
      this.llmEndpointParams = llmEndpointParams;
×
UNCOV
105
      return this;
×
106
    }
107

108
    @Override
109
    public AiAgentLongTextToolBuilder systemMessage(String systemMessage) {
UNCOV
110
      this.systemMessage = systemMessage;
×
UNCOV
111
      return this;
×
112
    }
113

114
    @Override
115
    public AiAgentLongTextToolBuilder promptTemplate(String promptTemplate) {
UNCOV
116
      this.promptTemplate = promptTemplate;
×
UNCOV
117
      return this;
×
118
    }
119

120
    public AiAgentLongTextTool build() {
UNCOV
121
      return new AiAgentLongTextTool(this);
×
122
    }
123
  }
124
}
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