TypedCandidate.TypedFinishReason

@IntDef(value = [0, 1, -100])
public annotation TypedCandidate.TypedFinishReason


The reason why this TypedCandidate is returned. Note: values from this class is populated from Candidate.FinishReason. Any updates to the Candidate.FinishReason should be reflected in this class as well.

Summary

Constants

static final int

The maximum number of output tokens as specified in the request was reached.

static final int

All other reasons that stopped the generation.

static final int

Natural stop point of the model.

Public constructors

Constants

MAX_TOKENS

public static final int MAX_TOKENS

The maximum number of output tokens as specified in the request was reached.

OTHER

public static final int OTHER

All other reasons that stopped the generation.

STOP

public static final int STOP

Natural stop point of the model.

Public constructors

TypedFinishReason

public TypedFinishReason()