View a markdown version of this page

SampledSequence - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

SampledSequence

A single generated sequence from the model.

Contents

stopReason

The reason why generation stopped. A value of stop indicates a stop sequence was encountered. A value of length indicates the maximum token limit was reached.

Type: String

Valid Values: stop | length

Required: 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 Amazon SDKs, see the following: