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:
  • Field Details

  • Method Details

    • of

    • autoTruncate

      @Nullable public final Boolean autoTruncate()
      For a text_embedding task, truncate inputs longer than the maximum token length automatically.

      API name: auto_truncate

    • topN

      @Nullable public final Integer topN()
      For a rerank task, the number of the top N documents that should be returned.

      API name: top_n

    • thinkingConfig

      @Nullable public final ThinkingConfig thinkingConfig()
      For a completion or chat_completion task, 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

    • maxTokens

      @Nullable public final Integer maxTokens()
      For completion and chat_completion tasks, specifies the max_tokens value for requests sent to the Google Model Garden anthropic provider. If provider is not set to anthropic, this field is ignored. If max_tokens is specified - it must be a positive integer. If not specified, the default value of 1024 is used. Anthropic models require max_tokens to be set for each request. Please refer to the Anthropic documentation for more information.

      API name: max_tokens

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • rebuild

      Returns:
      New GoogleVertexAITaskSettings.Builder initialized with field values of this instance
    • setupGoogleVertexAITaskSettingsDeserializer

      protected static void setupGoogleVertexAITaskSettingsDeserializer(ObjectDeserializer<GoogleVertexAITaskSettings.Builder> op)