11package com .mindee ;
22
33import com .mindee .v2 .clientOptions .BaseParameters ;
4- import java . util . Objects ;
4+ import com . mindee . v2 . http . ProductInfo ;
55import lombok .EqualsAndHashCode ;
66import lombok .Getter ;
77import org .apache .hc .client5 .http .entity .mime .MultipartEntityBuilder ;
1111 */
1212@ Getter
1313@ EqualsAndHashCode (callSuper = true )
14+ @ ProductInfo (slug = "extraction" )
1415public final class InferenceParameters extends BaseParameters {
1516 /**
1617 * Enhance extraction accuracy with Retrieval-Augmented Generation.
@@ -96,21 +97,16 @@ public static Builder builder(String modelId) {
9697 /**
9798 * Fluent builder for {@link InferenceParameters}.
9899 */
99- public static final class Builder {
100-
101- private final String modelId ;
100+ public static final class Builder extends BaseParameters .BaseBuilder <Builder > {
102101 private Boolean rag = null ;
103102 private Boolean rawText = null ;
104103 private Boolean polygon = null ;
105104 private Boolean confidence = null ;
106- private String alias ;
107- private String [] webhookIds = new String [] {};
108105 private String textContext ;
109106 private String dataSchema ;
110- private AsyncPollingOptions pollingOptions = AsyncPollingOptions .builder ().build ();
111107
112- private Builder (String modelId ) {
113- this . modelId = Objects . requireNonNull (modelId , "modelId must not be null" );
108+ Builder (String modelId ) {
109+ super (modelId );
114110 }
115111
116112 /** Enhance extraction accuracy with Retrieval-Augmented Generation. */
@@ -140,18 +136,6 @@ public Builder confidence(Boolean confidence) {
140136 return this ;
141137 }
142138
143- /** Set an alias for the uploaded document. */
144- public Builder alias (String alias ) {
145- this .alias = alias ;
146- return this ;
147- }
148-
149- /** Provide IDs of webhooks to forward the API response to. */
150- public Builder webhookIds (String [] webhookIds ) {
151- this .webhookIds = webhookIds ;
152- return this ;
153- }
154-
155139 /** Provide additional text context used by the model during inference. */
156140 public Builder textContext (String textContext ) {
157141 this .textContext = textContext ;
@@ -164,12 +148,6 @@ public Builder dataSchema(String dataSchema) {
164148 return this ;
165149 }
166150
167- /** Set polling options. */
168- public Builder pollingOptions (AsyncPollingOptions pollingOptions ) {
169- this .pollingOptions = pollingOptions ;
170- return this ;
171- }
172-
173151 /** Build an immutable {@link InferenceParameters} instance. */
174152 public InferenceParameters build () {
175153 return new InferenceParameters (
0 commit comments