responseModalities

public abstract GenerationConfig.Builder responseModalities(List<Modality> responseModalities)
@CanIgnoreReturnValue()
public GenerationConfig.Builder responseModalities(Array<Modality> responseModalities)

Setter for responseModalities.

responseModalities: Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.


@CanIgnoreReturnValue()
public GenerationConfig.Builder responseModalities(Array<String> responseModalities)

Setter for responseModalities given a varargs of strings.

responseModalities: Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.


@CanIgnoreReturnValue()
public GenerationConfig.Builder responseModalities(Array<Modality.Known> knownTypes)

Setter for responseModalities given a varargs of known enums.

responseModalities: Optional. The modalities of the response. The model will generate a response that includes all the specified modalities. For example, if this is set to `[TEXT, IMAGE]`, the response will include both text and an image.