• 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

0.0
/src/main/java/com/box/sdkgen/schemas/aistudioagentlongtexttool/AiStudioAgentLongTextTool.java
1
package com.box.sdkgen.schemas.aistudioagentlongtexttool;
2

3
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextTool;
4
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextToolEmbeddingsField;
5
import com.box.sdkgen.schemas.aillmendpointparams.AiLlmEndpointParams;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.Objects;
8

9
public class AiStudioAgentLongTextTool extends AiAgentLongTextTool {
10

11
  @JsonProperty("is_custom_instructions_included")
12
  protected Boolean isCustomInstructionsIncluded;
13

14
  public AiStudioAgentLongTextTool() {
15
    super();
×
16
  }
×
17

18
  protected AiStudioAgentLongTextTool(AiStudioAgentLongTextToolBuilder builder) {
19
    super(builder);
×
20
    this.isCustomInstructionsIncluded = builder.isCustomInstructionsIncluded;
×
21
  }
×
22

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

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

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

90
  public static class AiStudioAgentLongTextToolBuilder extends AiAgentLongTextToolBuilder {
×
91

92
    protected Boolean isCustomInstructionsIncluded;
93

94
    public AiStudioAgentLongTextToolBuilder isCustomInstructionsIncluded(
95
        Boolean isCustomInstructionsIncluded) {
96
      this.isCustomInstructionsIncluded = isCustomInstructionsIncluded;
×
97
      return this;
×
98
    }
99

100
    @Override
101
    public AiStudioAgentLongTextToolBuilder model(String model) {
102
      this.model = model;
×
103
      return this;
×
104
    }
105

106
    @Override
107
    public AiStudioAgentLongTextToolBuilder numTokensForCompletion(Long numTokensForCompletion) {
108
      this.numTokensForCompletion = numTokensForCompletion;
×
109
      return this;
×
110
    }
111

112
    @Override
113
    public AiStudioAgentLongTextToolBuilder llmEndpointParams(
114
        AiLlmEndpointParams llmEndpointParams) {
UNCOV
115
      this.llmEndpointParams = llmEndpointParams;
×
116
      return this;
×
117
    }
118

119
    @Override
120
    public AiStudioAgentLongTextToolBuilder systemMessage(String systemMessage) {
UNCOV
121
      this.systemMessage = systemMessage;
×
122
      return this;
×
123
    }
124

125
    @Override
126
    public AiStudioAgentLongTextToolBuilder promptTemplate(String promptTemplate) {
UNCOV
127
      this.promptTemplate = promptTemplate;
×
128
      return this;
×
129
    }
130

131
    @Override
132
    public AiStudioAgentLongTextToolBuilder embeddings(
133
        AiAgentLongTextToolEmbeddingsField embeddings) {
UNCOV
134
      this.embeddings = embeddings;
×
135
      return this;
×
136
    }
137

138
    public AiStudioAgentLongTextTool build() {
UNCOV
139
      return new AiStudioAgentLongTextTool(this);
×
140
    }
141
  }
142
}
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