Class GoogleVertexAITaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.GoogleVertexAITaskSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class GoogleVertexAITaskSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GoogleVertexAITaskSettings>Json deserializer forGoogleVertexAITaskSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanFor atext_embeddingtask, truncate inputs longer than the maximum token length automatically.static GoogleVertexAITaskSettingsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupGoogleVertexAITaskSettingsDeserializer(ObjectDeserializer<GoogleVertexAITaskSettings.Builder> op) final ThinkingConfigFor acompletionorchat_completiontask, allows configuration of the thinking features for the model.final IntegertopN()For areranktask, the number of the top N documents that should be returned.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forGoogleVertexAITaskSettings
-
-
Method Details
-
of
public static GoogleVertexAITaskSettings of(Function<GoogleVertexAITaskSettings.Builder, ObjectBuilder<GoogleVertexAITaskSettings>> fn) -
autoTruncate
For atext_embeddingtask, truncate inputs longer than the maximum token length automatically.API name:
auto_truncate -
topN
For areranktask, the number of the top N documents that should be returned.API name:
top_n -
thinkingConfig
For acompletionorchat_completiontask, allows configuration of the thinking features for the model. Refer to the Google documentation for the allowable configurations for each model type.API name:
thinking_config -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupGoogleVertexAITaskSettingsDeserializer
protected static void setupGoogleVertexAITaskSettingsDeserializer(ObjectDeserializer<GoogleVertexAITaskSettings.Builder> op)
-