ReadonlyconversationReadonlypassiveRead for its result only: its replies are not streamed from the provider.
ReadonlypredictionAn AI function's turn: every output, the lmcc turn, the replies (p.callId is the turn's id).
ReadonlyresultThe answer (the same as calling the program); rejects with its error, Waiting when it waits for a person.
ReadonlyturnThe turn, once recorded (before the model is asked).
The answer so far (its text since its latest request).
The answer's text, piece by piece.
Say yes to a tool call this turn waits for here (on a stream with no conversation store to wait in).
Optionalapproval: number | Approval | nullStop the turn: no new request starts, and it ends stopped.
Every event of the turn's call tree, as it happens (see Stream.events).
A turn, watched while it is made: a stream (its answer's text as it is written, its events, its result) with
turn(known once it is recorded, before the model is asked), andapprove/denyfor tool calls it waits for in this process. When its call ends, the turn'sended(orwaiting) record is written before its result is given.