generate Content Stream
Asynchronously generates content with streaming support given a GenAI model and a list of content.
Return
a com.google.genai.types.GenerateContentResponse instance that contains response contents and other metadata
Parameters
the name of the GenAI model to use for generation
a < to send to the generative model
a com.google.genai.types.GenerateContentConfig instance that specifies the optional configurations
Asynchronously generates content with streaming support given a GenAI model and a content object.
Return
a com.google.genai.types.GenerateContentResponse instance that contains response contents and other metadata
Parameters
the name of the GenAI model to use for generation
a com.google.genai.types.Content to send to the generative model
a com.google.genai.types.GenerateContentConfig instance that specifies the optional configurations
Asynchronously generates content with streaming support given a GenAI model and a text string.
Return
a com.google.genai.types.GenerateContentResponse instance that contains response contents and other metadata
Parameters
the name of the GenAI model to use for generation
the text string to send to the generative model
a com.google.genai.types.GenerateContentConfig instance that specifies the optional configurations