generateContentStream

Generates a streaming content response specification for a Gemini content generation request. This method provides a Java-friendly overload that accepts a Consumer for configuring the content request.

Return

A GeminiStreamingContentBuildingStep that represents the next step in configuring the streaming content response.

Parameters

name

An optional name for the content request. Defaults to null if not provided.

block

A Consumer that allows configuration of the GeminiContentRequestSpecification for the request.