stream method
Server-streaming generation: emits per-token, tool-call, tool-result, and completion events until the turn terminates.
Implementation
$async.Future<ChatStreamEvent> stream(
$pb.ClientContext? ctx, ChatGenerationRequest request) =>
_client.invoke<ChatStreamEvent>(
ctx, 'Chat', 'Stream', request, ChatStreamEvent());