Output response MIME type of the generated candidate text.
response_mime_type: str | None = NoneSupported MIME types:
'text/plain': (default) Text output.'application/json': JSON response in the candidates.'text/x.enum': Enum in plain text. (legacy; use JSON schema output instead)The model also needs to be prompted to output the appropriate response type, otherwise the behavior is undefined.
(In other words, simply setting this param doesn't force the model to comply; it only tells the model the kind of output expected. You still need to prompt it correctly.)