Class OpenShiftAiTaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.OpenShiftAiTaskSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class OpenShiftAiTaskSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<OpenShiftAiTaskSettings>Json deserializer forOpenShiftAiTaskSettings -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenShiftAiTaskSettingsrebuild()final BooleanFor areranktask, whether to return the source documents in the response.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal IntegertopN()For areranktask, the number of most relevant documents to return.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forOpenShiftAiTaskSettings
-
-
Method Details
-
of
public static OpenShiftAiTaskSettings of(Function<OpenShiftAiTaskSettings.Builder, ObjectBuilder<OpenShiftAiTaskSettings>> fn) -
returnDocuments
For areranktask, whether to return the source documents in the response.API name:
return_documents -
topN
For areranktask, the number of most relevant documents to return.API name:
top_n -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
OpenShiftAiTaskSettings.Builderinitialized with field values of this instance
-
setupOpenShiftAiTaskSettingsDeserializer
protected static void setupOpenShiftAiTaskSettingsDeserializer(ObjectDeserializer<OpenShiftAiTaskSettings.Builder> op)
-