append records at the tail, read starting from any position in the stream, and check-tail to figure out the tail.
seq_num: 42
timestamp: 1713812735000
headers:
role: agent
response-type: tool-call
format: json
body:
timestamp: 1713812735000
headers:
role: agent
response-type: tool-call
format: json
body:
Anatomy of a record
Sequence number
Strictly increasing position within the stream.Always assigned by S2.
Timestamp
Arrival timestamp in milliseconds, when assigned by S2 (default).It can also be client-specified.
Headers
Name-value pairs, similar to HTTP headers.Both the name and value can be arbitrary bytes.
Body
The core payload of a record.Arbitrary bytes.

