responseModalitiesFromString

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

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