Skip to content

Token Profile: Descriptor Common Header

The shared field definitions now live in Typed Payload Descriptor. This page stays token-specific: it shows how the common descriptor fields are combined when the payload belongs to a discrete-sequence stream.

Key field combinations in token

FieldWhat matters in tokenTypical values
profile_idTells the receiver that the payload belongs to the token familytoken
schema_idSelects the concrete token-sequence template, such as chat delta or tool-result streamingllm.chat.delta.v1
schema_versionPins the exact schema interpretation version1
stream_semanticsDecides how the receiver should append, merge, or otherwise consume the token streamordered_incremental
offset / lengthPlaces the current chunk back into the logical sequence128 / 36
descriptor_flagsExposes token-side hints such as explicit stop-reason presencestop_reason_present

What to focus on in token

  1. schema_id + schema_version decide how to interpret token_unit / sequence_start / sequence_end / terminal / stop_reason.
  2. stream_semantics + offset + length decide whether the chunk should be appended in order, reassembled, or handled under another sequence policy.
  3. descriptor_flags is the right place for extra chunk-level hints, not for sampling internals or model-private runtime state.

This descriptor layer anchors token chunks to the right profile, schema, and logical sequence; the actual sequence interpretation still lives in Schema and Body and Payload Frame.

NNRP Documentation