• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Build has been canceled!

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

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

8
@JsonFilter("nullablePropertyFilter")
9
public class AiAgentLongTextTool extends AiAgentBasicTextTool {
10

11
  protected AiAgentLongTextToolEmbeddingsField embeddings;
12

13
  public AiAgentLongTextTool() {
14
    super();
1✔
15
  }
1✔
16

17
  protected AiAgentLongTextTool(Builder builder) {
18
    super(builder);
×
UNCOV
19
    this.embeddings = builder.embeddings;
×
UNCOV
20
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
21
  }
×
22

23
  public AiAgentLongTextToolEmbeddingsField getEmbeddings() {
UNCOV
24
    return embeddings;
×
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
    AiAgentLongTextTool casted = (AiAgentLongTextTool) o;
×
36
    return Objects.equals(model, casted.model)
×
37
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
38
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
UNCOV
39
        && Objects.equals(systemMessage, casted.systemMessage)
×
UNCOV
40
        && Objects.equals(promptTemplate, casted.promptTemplate)
×
UNCOV
41
        && Objects.equals(embeddings, casted.embeddings);
×
42
  }
43

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

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

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

86
    protected AiAgentLongTextToolEmbeddingsField embeddings;
87

88
    public Builder embeddings(AiAgentLongTextToolEmbeddingsField embeddings) {
UNCOV
89
      this.embeddings = embeddings;
×
UNCOV
90
      return this;
×
91
    }
92

93
    @Override
94
    public Builder model(String model) {
UNCOV
95
      this.model = model;
×
UNCOV
96
      return this;
×
97
    }
98

99
    @Override
100
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
UNCOV
101
      this.numTokensForCompletion = numTokensForCompletion;
×
UNCOV
102
      return this;
×
103
    }
104

105
    @Override
106
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
UNCOV
107
      this.llmEndpointParams = llmEndpointParams;
×
UNCOV
108
      return this;
×
109
    }
110

111
    @Override
112
    public Builder systemMessage(String systemMessage) {
UNCOV
113
      this.systemMessage = systemMessage;
×
UNCOV
114
      return this;
×
115
    }
116

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

123
    public AiAgentLongTextTool build() {
UNCOV
124
      return new AiAgentLongTextTool(this);
×
125
    }
126
  }
127
}
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