responseMimeType

public abstract GenerateContentConfig.Builder responseMimeType(String responseMimeType)

Setter for responseMimeType.

responseMimeType: Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined.