• 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

7.14
/src/main/java/com/box/sdkgen/schemas/aiagentlongtexttooltextgen/AiAgentLongTextToolTextGen.java
1
package com.box.sdkgen.schemas.aiagentlongtexttooltextgen;
2

3
import com.box.sdkgen.schemas.aiagentbasictexttooltextgen.AiAgentBasicTextToolTextGen;
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 AiAgentLongTextToolTextGen extends AiAgentBasicTextToolTextGen {
15

16
  protected AiAgentLongTextToolTextGenEmbeddingsField embeddings;
17

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

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

28
  public AiAgentLongTextToolTextGenEmbeddingsField 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
    AiAgentLongTextToolTextGen casted = (AiAgentLongTextToolTextGen) 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 "AiAgentLongTextToolTextGen{"
×
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 AiAgentBasicTextToolTextGen.Builder {
×
90

91
    protected AiAgentLongTextToolTextGenEmbeddingsField embeddings;
92

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

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

104
    @Override
105
    public Builder numTokensForCompletion(Long numTokensForCompletion) {
106
      this.numTokensForCompletion = numTokensForCompletion;
×
107
      return this;
×
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;
×
137
      return this;
×
138
    }
139

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

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

152
    public AiAgentLongTextToolTextGen build() {
153
      return new AiAgentLongTextToolTextGen(this);
×
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