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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

45.24
/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.box.sdkgen.schemas.aillmendpointparamsaws.AiLlmEndpointParamsAws;
6
import com.box.sdkgen.schemas.aillmendpointparamsgoogle.AiLlmEndpointParamsGoogle;
7
import com.box.sdkgen.schemas.aillmendpointparamsibm.AiLlmEndpointParamsIbm;
8
import com.box.sdkgen.schemas.aillmendpointparamsopenai.AiLlmEndpointParamsOpenAi;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import java.util.Objects;
11

12
/** AI agent processor used to to handle longer text. */
13
@JsonFilter("nullablePropertyFilter")
14
public class AiAgentLongTextTool extends AiAgentBasicTextTool {
15

16
  protected AiAgentLongTextToolEmbeddingsField embeddings;
17

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

22
  protected AiAgentLongTextTool(Builder builder) {
23
    super(builder);
1✔
24
    this.embeddings = builder.embeddings;
1✔
25
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
26
  }
1✔
27

28
  public AiAgentLongTextToolEmbeddingsField getEmbeddings() {
29
    return embeddings;
1✔
30
  }
31

32
  @Override
33
  public boolean equals(Object o) {
34
    if (this == o) {
×
35
      return true;
×
36
    }
37
    if (o == null || getClass() != o.getClass()) {
×
38
      return false;
×
39
    }
40
    AiAgentLongTextTool casted = (AiAgentLongTextTool) o;
×
41
    return Objects.equals(model, casted.model)
×
42
        && Objects.equals(numTokensForCompletion, casted.numTokensForCompletion)
×
43
        && Objects.equals(llmEndpointParams, casted.llmEndpointParams)
×
44
        && Objects.equals(systemMessage, casted.systemMessage)
×
45
        && Objects.equals(promptTemplate, casted.promptTemplate)
×
46
        && Objects.equals(embeddings, casted.embeddings);
×
47
  }
48

49
  @Override
50
  public int hashCode() {
51
    return Objects.hash(
×
52
        model,
53
        numTokensForCompletion,
54
        llmEndpointParams,
55
        systemMessage,
56
        promptTemplate,
57
        embeddings);
58
  }
59

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

89
  public static class Builder extends AiAgentBasicTextTool.Builder {
1✔
90

91
    protected AiAgentLongTextToolEmbeddingsField embeddings;
92

93
    public Builder embeddings(AiAgentLongTextToolEmbeddingsField embeddings) {
94
      this.embeddings = embeddings;
×
95
      return this;
×
96
    }
97

98
    @Override
99
    public Builder model(String model) {
100
      this.model = model;
1✔
101
      return this;
1✔
102
    }
103

104
    @Override
105
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
106
      this.numTokensForCompletion = numTokensForCompletion;
1✔
107
      return this;
1✔
108
    }
109

110
    @Override
111
    public Builder llmEndpointParams(AiLlmEndpointParamsOpenAi llmEndpointParams) {
112
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
113
      return this;
×
114
    }
115

116
    @Override
117
    public Builder llmEndpointParams(AiLlmEndpointParamsGoogle llmEndpointParams) {
118
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
119
      return this;
×
120
    }
121

122
    @Override
123
    public Builder llmEndpointParams(AiLlmEndpointParamsAws llmEndpointParams) {
124
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
125
      return this;
×
126
    }
127

128
    @Override
129
    public Builder llmEndpointParams(AiLlmEndpointParamsIbm llmEndpointParams) {
130
      this.llmEndpointParams = new AiLlmEndpointParams(llmEndpointParams);
×
131
      return this;
×
132
    }
133

134
    @Override
135
    public Builder llmEndpointParams(AiLlmEndpointParams llmEndpointParams) {
136
      this.llmEndpointParams = llmEndpointParams;
1✔
137
      return this;
1✔
138
    }
139

140
    @Override
141
    public Builder systemMessage(String systemMessage) {
142
      this.systemMessage = systemMessage;
1✔
143
      return this;
1✔
144
    }
145

146
    @Override
147
    public Builder promptTemplate(String promptTemplate) {
148
      this.promptTemplate = promptTemplate;
1✔
149
      return this;
1✔
150
    }
151

152
    public AiAgentLongTextTool build() {
153
      return new AiAgentLongTextTool(this);
1✔
154
    }
155
  }
156
}
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