TypedCandidate.TypedFinishReason

@IntDef(value = [0, 1, -100])
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

const Int

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

const Int

All other reasons that stopped the generation.

const Int

Natural stop point of the model.

Public constructors

Constants

MAX_TOKENS

const val MAX_TOKENSInt

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

OTHER

const val OTHERInt

All other reasons that stopped the generation.

STOP

const val STOPInt

Natural stop point of the model.

Public constructors

TypedFinishReason

TypedFinishReason()