stream
Send a user message and stream the assistant's response.
History is updated once the flow completes successfully. If the collecting coroutine is cancelled, the user message is rolled back so the session reflects only fully-completed turns.
Send a user message and stream the assistant's response.
History is updated once the flow completes successfully. If the collecting coroutine is cancelled, the user message is rolled back so the session reflects only fully-completed turns.