ctx.stream() / streamText.
Properties
strategy?
'auto' (default) picks from capabilities.streaming; an unsupported choice degrades.
throttleMs?
signal?
return() is called.
onCancel?
'flush'
(send it). 'discard' sends nothing more and removes the live preview: a draft
simply expires and, with the edit strategy, the message being edited is deleted
(when the transport can delete; otherwise only its cursor is removed). Messages
already completed before the cancel stay.
maxLength?
capabilities.maxTextLength, else 4096 (capabilities.maxTextBytes also applies).
minChunkChars?
'chunk': minimum chars before a chunk is sent at a sentence boundary. Default 160.
maxChunkChars?
'chunk': hard size of a chunk with no sentence boundary. Default min(maxLength, 1500).
typing?
typingIntervalMs?
cursor?
' ▌'). Never in the final text. Default ''.
canStop?
can_stop). Default false.
keepOnStop?
keep_on_stop).
sendOptions?
{ quoted: ctx.ref }).
draftPlatformData?
message_thread_id).