stream method

Future<ChatStreamEvent> stream(
  1. ClientContext? ctx,
  2. ChatGenerationRequest request
)

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());