StopReason

The reason a sampling completion stopped. endTurn/stopSequence/ maxTokens are defined for all spec versions; toolUse is added by the tool-enabled sampling revisions. Servers may also receive other provider-specific strings — see stopReasonFromString.

Values

ValueMeaning
endTurn
stopSequence
maxTokens
toolUse