autoTruncate

public abstract EmbedContentConfig.Builder autoTruncate(boolean autoTruncate)

Setter for autoTruncate.

autoTruncate: Gemini Enterprise Agent Platform only. Whether to silently truncate inputs longer than the max sequence length. If this option is set to false, oversized inputs will lead to an INVALID_ARGUMENT error, similar to other text APIs.