responseModalitiesFromKnown

@CanIgnoreReturnValue()
public GenerationConfig.Builder responseModalitiesFromKnown(List<Modality.Known> knownTypes)

Setter for responseModalities given a list 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.