ai.stream.TurnMeta

Turn metadata as it arrives on the wire. Providers send stop_reason and token counts on different events; each TurnMeta carries what its event had and TurnStream folds the non-null values together, count by count (last write wins).

Reference version

Signature

class ai.stream.TurnMeta

Turn metadata as it arrives on the wire. Providers send stop_reason and token counts on different events; each TurnMeta carries what its event had and TurnStream folds the non-null values together, count by count (last write wins).

Source:<builtin>/ai/ns_stream/stream.bamlbytes 4234–4418

Fields

resolved_model

string | null