enableAffectiveDialog

public abstract GenerationConfig.Builder enableAffectiveDialog(boolean enableAffectiveDialog)

Setter for enableAffectiveDialog.

enableAffectiveDialog: Optional. If enabled, the model will detect emotions and adapt its responses accordingly. For example, if the model detects that the user is frustrated, it may provide a more empathetic response. This field is not supported in Gemini API.