generateContentStream returns an async iterable
Same shape as the Python async surface. generateContentStream returns an async iterable; consume it with for await ... of.
Same chunk shape
Each chunk is a partial GenerateContentResponse. chunk.text for the slice; chunk.usageMetadata on the final chunk only.
Streaming chat works the same way
chat.sendMessageStream mirrors the streaming non-chat call.