stopSequences

public abstract GenerateContentConfig.Builder stopSequences(List<String> stopSequences)
@CanIgnoreReturnValue()
public GenerateContentConfig.Builder stopSequences(Array<String> stopSequences)

Setter for stopSequences.

stopSequences: List of strings that tells the model to stop generating text if one of the strings is encountered in the response.