ResponseModality

classResponseModality


Represents the type of content present in a response (for example, text, image, audio).

Summary

Public companion properties

ResponseModality

Represents an audio response modality.

ResponseModality

Represents an image response modality.

ResponseModality

Represents a plain text response modality.

Public properties

Int

Public companion properties

AUDIO

val AUDIOResponseModality

Represents an audio response modality.

IMAGE

val IMAGEResponseModality

Represents an image response modality.

TEXT

val TEXTResponseModality

Represents a plain text response modality.

Public properties

ordinal

val ordinalInt

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.