SampledSequence
A single generated sequence from the model.
Contents
- stopReason
-
The reason why generation stopped. A value of
stopindicates a stop sequence was encountered. A value oflengthindicates the maximum token limit was reached.Type: String
Valid Values:
stop | lengthRequired: Yes
- tokens
-
The token IDs of the generated sequence.
Type: Array of integers
Required: Yes
- logprobs
-
The per-token log-probabilities for the generated tokens.
Type: Array of doubles
Required: No
- tokenUsage
-
The token usage statistics for this individual sample.
Type: SampleTokenUsage object
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: