Skip to content

Token Profile: Schema and Body

This page covers the fields that token adds on top of the shared descriptor. These are the fields that actually explain how the discrete sequence should be interpreted.

token_unit

FieldData shapeTypical valuesDescription
token_unitEnum or short stringbpe, sentencepieceDefines the segmentation contract for the sequence

sequence_start

FieldData shapeTypical valuesDescription
sequence_startInteger128Start position covered by the current chunk

sequence_end

FieldData shapeTypical valuesDescription
sequence_endInteger136End position covered by the current chunk

terminal

FieldData shapeTypical valuesDescription
terminalBooleantrue, falseIndicates whether the current operation or profile output has terminated

stop_reason

FieldData shapeTypical valuesDescription
stop_reasonEnum or stringnone, eos, tool_callExplains why output stopped when the schema decides to expose it

sequence_start / sequence_end position the chunk in the logical stream. terminal / stop_reason tell the consumer whether more chunks are still expected.

NNRP Documentation